HorizontalStrokeCardThreeTwoRadioForOneComponent.ets 1.76 KB
import { CommonConstants } from 'wdConstant'
import { CompDTO } from '../repository/bean/CompDTO'

@Component
export struct HorizontalStrokeCardThreeTwoRadioForOneComponent {
  @State compDTO: CompDTO = {} as CompDTO
  build() {
    Column() {
      Row() {
        Row() {
          Image($r("app.media.redLine"))
            .width(3)
            .height(16)
            .margin({ right: 4 })
          Text("大标题")
            .fontSize($r("app.float.font_size_17"))
            .fontColor($r("app.color.color_222222"))
            .fontWeight(600)
        }

        Row() {
          Text("更多")
            .fontSize($r("app.float.font_size_14"))
            .fontColor($r("app.color.color_999999"))
            .margin({ right: 1 })
          Image($r("app.media.more"))
            .width(14)
            .height(14)
        }
      }.justifyContent(FlexAlign.SpaceBetween)
      .margin({ top: 8 ,bottom: 8})
      .width('100%')


      Image($r("app.media.setting"))
        .aspectRatio(1.5)
        .width('100%')
        .borderRadius(4)
        .objectFit(ImageFit.Cover)

      Text("大发大法师法师打发大水发生发大水发大水发大发大法师法师打发大水发生发大水发大水发大发大法师法师打发大水发生发大水发大水发")
        .fontSize($r("app.float.font_size_14"))
        .fontColor($r("app.color.color_212228"))
        .fontWeight(400)
        .maxLines(1)
        .textOverflow({ overflow: TextOverflow.Ellipsis }) // 超出的部分显示省略号。
        .textAlign(TextAlign.Start)
        .margin({ top: 8 })
        .width('100%')

    }.width("100%")
    .padding({
      top: 14,
      left: 16,
      right: 16,
      bottom: 14
    })
    .backgroundColor($r("app.color.white"))
    .margin({ bottom: 8 })
  }
}