给Tabs增加.scrollable(false)禁止鼠标滑动切换

This commit is contained in:
JackLee 2026-02-26 21:42:18 +08:00
parent d748961030
commit acb34c3b4d
2 changed files with 4 additions and 2 deletions

View File

@ -69,7 +69,8 @@ export struct ModelViewTab {
bottom: 2, bottom: 2,
right: 0 right: 0
}) })
}.barHeight(0) }.scrollable(false)
.barHeight(0)
.margin({ .margin({
top: 0, top: 0,
left: 0, left: 0,

View File

@ -141,7 +141,8 @@ export struct TitleTab {
.padding(1) .padding(1)
.margin({ top: 0,left:0,bottom:2,right:0}) .margin({ top: 0,left:0,bottom:2,right:0})
}) })
}.barHeight(0) }.scrollable(false)
.barHeight(0)
.margin({ top: 0,left:0,bottom:0,right:0}) .margin({ top: 0,left:0,bottom:0,right:0})
.height('auto') .height('auto')
.barMode(BarMode.Fixed) .barMode(BarMode.Fixed)