Feature/update cli (#4)
* fix js api typo * update doric-cli target file
This commit is contained in:
@@ -31,7 +31,7 @@ class FlowDemo extends Panel {
|
||||
text: `${idx}`,
|
||||
textColor: Color.WHITE,
|
||||
textSize: 20,
|
||||
layoutConfig: layoutConfig().fit().configAligmnet(Gravity.Center)
|
||||
layoutConfig: layoutConfig().fit().configAlignmnet(Gravity.Center)
|
||||
}))
|
||||
})
|
||||
},
|
||||
@@ -51,7 +51,7 @@ class FlowDemo extends Panel {
|
||||
text: 'load more',
|
||||
textColor: Color.WHITE,
|
||||
textSize: 20,
|
||||
layoutConfig: layoutConfig().fit().configAligmnet(Gravity.Center)
|
||||
layoutConfig: layoutConfig().fit().configAlignmnet(Gravity.Center)
|
||||
}))
|
||||
})
|
||||
})
|
||||
|
@@ -33,7 +33,7 @@ class ListPanel extends Panel {
|
||||
}
|
||||
it.loadMoreView = listItem(text({
|
||||
text: "Loading",
|
||||
layoutConfig: layoutConfig().most().configHeight(LayoutSpec.JUST).configAligmnet(Gravity.Center),
|
||||
layoutConfig: layoutConfig().most().configHeight(LayoutSpec.JUST).configAlignmnet(Gravity.Center),
|
||||
height: 50,
|
||||
}))
|
||||
it.renderItem = (idx: number) => {
|
||||
|
@@ -19,7 +19,7 @@ class PopoverDemo extends Panel {
|
||||
height: 50,
|
||||
backgroundColor: colors[0],
|
||||
textColor: Color.WHITE,
|
||||
layoutConfig: layoutConfig().just().configAligmnet(Gravity.Center),
|
||||
layoutConfig: layoutConfig().just().configAlignmnet(Gravity.Center),
|
||||
text: "This is PopOver Window",
|
||||
}).also(v => {
|
||||
let idx = 0
|
||||
|
@@ -34,7 +34,7 @@ class SliderPanel extends Panel {
|
||||
return slideItem(image({
|
||||
imageUrl: imageUrls[idx % imageUrls.length],
|
||||
scaleType: ScaleType.ScaleAspectFit,
|
||||
layoutConfig: layoutConfig().configWidth(LayoutSpec.MOST).configHeight(LayoutSpec.MOST).configAligmnet(gravity().center()),
|
||||
layoutConfig: layoutConfig().configWidth(LayoutSpec.MOST).configHeight(LayoutSpec.MOST).configAlignmnet(gravity().center()),
|
||||
})).also(it => {
|
||||
let start = idx
|
||||
it.onClick = () => {
|
||||
|
@@ -83,7 +83,7 @@ class StickDemo extends Panel {
|
||||
text: `In Page ${idx},${itemIdx}`,
|
||||
textColor: Color.WHITE,
|
||||
textSize: 20,
|
||||
layoutConfig: layoutConfig().fit().configAligmnet(Gravity.Center)
|
||||
layoutConfig: layoutConfig().fit().configAlignmnet(Gravity.Center)
|
||||
}).also(v => {
|
||||
v.onClick = () => {
|
||||
v.text = "Clicked"
|
||||
@@ -120,7 +120,7 @@ class StickDemo extends Panel {
|
||||
e.textColor = Color.BLACK
|
||||
}
|
||||
})
|
||||
this.indicator.layoutConfig = layoutConfig().just().configAligmnet(Gravity.Bottom).configMargin({ bottom: 13 })
|
||||
this.indicator.layoutConfig = layoutConfig().just().configAlignmnet(Gravity.Bottom).configMargin({ bottom: 13 })
|
||||
animate(context)({
|
||||
animations: () => {
|
||||
this.indicator.centerX = this.getRootView().width / this.tabs.length * (page + 0.5)
|
||||
|
Reference in New Issue
Block a user