Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e1566bf
Slider支持滚动到指定位置
biezhihua Oct 21, 2024
cea22b1
Slider支持滚动到指定位置
biezhihua Oct 21, 2024
15d9854
test slider
biezhihua Oct 22, 2024
ae26b7e
revert instance
biezhihua Oct 22, 2024
a4ab746
update bootstrap
Oct 22, 2024
01528d2
fix target index calculate error
biezhihua Oct 22, 2024
c295fa2
Merge branch 'github-main' of gitlab.alibaba-inc.com:yk-vip-gaia/Gaia…
biezhihua Oct 22, 2024
eacf60e
fix crash
biezhihua Oct 23, 2024
611269d
fix slider
biezhihua Oct 23, 2024
40314da
YKIndicator
biezhihua Oct 23, 2024
193c3db
fix scroll event
biezhihua Oct 24, 2024
aa1ed36
fix selected
biezhihua Oct 24, 2024
188d802
fix selected
biezhihua Oct 24, 2024
bac3cae
移除holding-offset等属性
biezhihua Oct 24, 2024
166265a
fix slider item width
Oct 30, 2024
e2fd702
修复Slider数据不更新的问题,POSITION_NONOE数据总是需要更新
biezhihua Oct 31, 2024
4340016
fix event
biezhihua Oct 31, 2024
161caba
keep
biezhihua Oct 31, 2024
93a8b09
修复Grid数据为0时高度计算错误的问题
biezhihua Oct 31, 2024
32a7cd7
fix grdis
biezhihua Nov 4, 2024
fc12fe7
fix fastpreview
biezhihua Nov 7, 2024
bbda004
Merge branch 'github-main' of github.com:alibaba/GaiaX into github-main
biezhihua Nov 7, 2024
7e720d9
open createTemplateContext
biezhihua Nov 18, 2024
7112776
fix pageSize 0
biezhihua Nov 29, 2024
3ebeee1
缓存计算结果
biezhihua Dec 5, 2024
fd43040
fix blur android.renderscript.RSIllegalArgumentException: Invalid obj…
biezhihua Dec 30, 2024
63adddd
fix crash
biezhihua Feb 12, 2025
cab3b06
自定义View兜底
biezhihua Feb 13, 2025
50686aa
修复marign设置错误&JS异常处理
biezhihua Feb 25, 2025
53a43fc
添加一些日志
Mar 6, 2025
8ee93bc
fix: 修复display没有处理absolute值的问题
Sep 18, 2025
3673aef
fix: 修复display没有处理absolute值的问题 测试用例
Sep 18, 2025
bd21530
Merge branch 'main' of github.com:alibaba/GaiaX into github-main
Dec 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#template_view_property_display_databinding_absolute {
width: 100%;
height: 100px;
background-color: primaryBackground;
justify-content: center;
align-items: center;
}
#empty_view0 {
flex-grow:1;
height: 100px;
background-color: #e4e4e4;
}
#empty_view {
display: none;
width: 100px;
height: 100px;
background-color: #e4e4e4;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"data": {
"empty_view": {
"extend": {
"display": "$display ? 'absolute' : 'none'"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"id": "template_view_property_display_databinding_absolute",
"type": "gaia-template",
"layers": [
{
"id": "empty_view0",
"type": "view"
},
{
"id": "empty_view",
"type": "view"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,31 @@ class GXComponentViewTest : GXBaseTest() {
Assert.assertEquals(0F.dpToPx(), rootView.child(1).height())
}

@Test
fun template_view_property_display_databinding_absolute() {
val templateItem = GXTemplateEngine.GXTemplateItem(
GXMockUtils.context,
"view",
"template_view_property_display_databinding_absolute"
)
val templateData = GXTemplateEngine.GXTemplateData(JSONObject().apply {
this["display"] = true
})
val rootView = GXTemplateEngine.instance.createView(templateItem, size)
GXTemplateEngine.instance.bindData(rootView, templateData)

Assert.assertEquals(View.VISIBLE, rootView.child(1).visibility)

val templateData1 = GXTemplateEngine.GXTemplateData(JSONObject().apply {
this["display"] = false
})

GXTemplateEngine.instance.bindData(rootView, templateData1)

Assert.assertEquals(View.GONE, rootView.child(1).visibility)

}

@Test
fun template_view_property_display_flex() {
val templateItem = GXTemplateEngine.GXTemplateItem(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ class GXStyleConvert {
fun display(target: String): Int? = when (target) {
"none" -> View.GONE
"flex" -> View.VISIBLE
"absolute" -> View.VISIBLE
else -> null
}

Expand Down
Loading