add vlayout and hlayout

This commit is contained in:
pengfei.zhou
2019-12-20 17:28:24 +08:00
parent bc596a1a5e
commit e99ec29919
6 changed files with 257 additions and 7 deletions

3
dist/Counter.js vendored
View File

@@ -21,6 +21,9 @@ class CounterView extends doric.ViewHolder {
child1.left = 100
child1.backgroundColor = doric.Color.RED;
child1.padding = { left: 50, top: 50 }
child1.layoutConfig = {
alignment: doric.Gravity.Center
}
const grandson = new doric.Stack;
grandson.width = 100;
grandson.height = 100;