
import { MeetingItemModel,ItemModel } from '../model/ItemModel'
@Preview
@Component
export struct ItemComp {
  item: MeetingItemModel = new MeetingItemModel({} as ItemModel)

  build() {
    Column() {
      if(this.item.count==0)
      {
        Text(this.item.begin_date.substring(0, 4)
          + "年"
          + this.item.begin_date.substring(5, 7)
          + "月").fontSize(14).fontColor('app.color.333333').height(35)
      }
      else
      {
        Text(this.item.count+'')
      }



    }.backgroundColor($r('app.color.e4e4e4')).width('100%')
  }
}