会议提交测试
This commit is contained in:
@@ -1,13 +1,26 @@
|
||||
|
||||
import { MeetingItemModel,ItemModel } from '../model/ItemModel'
|
||||
@Preview
|
||||
@Component
|
||||
export struct ItemComp {
|
||||
item: MeetingItemModel = new MeetingItemModel({} as ItemModel)
|
||||
|
||||
build() {
|
||||
Column({ space: 12 }) {
|
||||
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%')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user