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([], {
|
stack([], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
backgroundColor: Color.RED
|
backgroundColor: Color.RED,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
}),
|
}),
|
||||||
stack([], {
|
stack([], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
backgroundColor: Color.GREEN
|
backgroundColor: Color.GREEN,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
}),
|
}),
|
||||||
stack([], {
|
stack([], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
backgroundColor: Color.BLUE
|
backgroundColor: Color.BLUE,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
})
|
})
|
||||||
], {
|
], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 300,
|
height: 300,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
}),
|
}),
|
||||||
vlayout([
|
vlayout([
|
||||||
stack([], {
|
stack([], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
backgroundColor: Color.GREEN
|
backgroundColor: Color.GREEN,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
}),
|
}),
|
||||||
stack([], {
|
stack([], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
backgroundColor: Color.BLUE
|
backgroundColor: Color.BLUE,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
}),
|
}),
|
||||||
stack([], {
|
stack([], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
backgroundColor: Color.RED
|
backgroundColor: Color.RED,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
})
|
})
|
||||||
], {
|
], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 300,
|
height: 300,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
}),
|
}),
|
||||||
vlayout([
|
vlayout([
|
||||||
stack([], {
|
stack([], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
backgroundColor: Color.BLUE
|
backgroundColor: Color.BLUE,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
}),
|
}),
|
||||||
stack([], {
|
stack([], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
backgroundColor: Color.RED
|
backgroundColor: Color.RED,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
}),
|
}),
|
||||||
stack([], {
|
stack([], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
backgroundColor: Color.GREEN
|
backgroundColor: Color.GREEN,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
})
|
})
|
||||||
], {
|
], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 300,
|
height: 300,
|
||||||
|
layoutConfig: layoutConfig().just()
|
||||||
})
|
})
|
||||||
], {
|
], {
|
||||||
width: 400,
|
width: 400,
|
||||||
height: 300,
|
height: 300,
|
||||||
|
layoutConfig: layoutConfig().just(),
|
||||||
backgroundColor: Color.BLACK
|
backgroundColor: Color.BLACK
|
||||||
}).in(rootView)
|
}).in(rootView)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user