|
|
@@ -261,24 +261,30 @@ struct NewIndex{
|
|
|
.width('100%')
|
|
|
.visibility(this.isCoverOpacity()?Visibility.None:Visibility.Visible)
|
|
|
.height(180)
|
|
|
- Blank()
|
|
|
- .backgroundColor(this.themeColor)
|
|
|
- .visibility(this.isCoverOpacity()?Visibility.Visible:Visibility.None)
|
|
|
- .width('100%')
|
|
|
- .height(55)
|
|
|
+ .borderRadius({
|
|
|
+ topLeft: 0,
|
|
|
+ topRight : 20,
|
|
|
+ bottomLeft: 0,
|
|
|
+ bottomRight: 0
|
|
|
+ })
|
|
|
// 动态生成抽屉菜单内容
|
|
|
this.getDrawerView()
|
|
|
}
|
|
|
- .width(this.currentBreakpoint !== BreakpointTypeEnum.SM?'40%':'75%')
|
|
|
+ .width('100%')
|
|
|
.height('100%')
|
|
|
- .backgroundColor($r('app.color.silvery'))
|
|
|
.onClick((event:ClickEvent)=>{
|
|
|
// 阻止事件冒泡
|
|
|
})
|
|
|
}
|
|
|
- .width('100%')
|
|
|
+ .width(this.currentBreakpoint !== BreakpointTypeEnum.SM?'36%':'70%')
|
|
|
.height('100%')
|
|
|
- .backgroundColor($r('app.color.ban_touming'))
|
|
|
+ .borderRadius({
|
|
|
+ topLeft: 0,
|
|
|
+ topRight : 20,
|
|
|
+ bottomLeft: 0,
|
|
|
+ bottomRight: 20
|
|
|
+ })
|
|
|
+ .backgroundColor($r('app.color.silvery'))
|
|
|
.alignItems(HorizontalAlign.Start)
|
|
|
.onClick((event:ClickEvent)=>{
|
|
|
// 点击抽屉外部关闭抽屉
|
|
|
@@ -489,9 +495,7 @@ struct NewIndex{
|
|
|
}
|
|
|
.width('100%')
|
|
|
.alignListItem(ListItemAlign.Center)
|
|
|
- .backgroundColor($r('app.color.silvery'))
|
|
|
.layoutWeight(1)
|
|
|
- // .divider({ strokeWidth: 1, color: this.isDarkMode? '333333':'#ffe9f0f0' })
|
|
|
.edgeEffect(EdgeEffect.None) // 必须设置列表为滑动到边缘无效果
|
|
|
}
|
|
|
|