update lib js

This commit is contained in:
王劲鹏
2020-01-03 19:02:41 +08:00
committed by osborn
parent e06b305eb8
commit 131ba87104
6 changed files with 69 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ import { title } from "./utils";
class DraggableDemo extends Panel {
build(root: Group) {
let text = (new Text).also(it => {
it.layoutConfig = layoutConfig().just().configAlignmnet(Gravity.Center)
it.layoutConfig = layoutConfig().just().configAlignment(Gravity.Center)
it.width = 100
it.height = 30
it.textColor = Color.parse('#ff0000')