diff --git a/entry/src/main/ets/Item/FilesItem.ets b/entry/src/main/ets/Item/FilesItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..84ac64288a2d4980119d90e8e934863d279bc042 --- /dev/null +++ b/entry/src/main/ets/Item/FilesItem.ets @@ -0,0 +1,39 @@ + +@Entry +@Component +export struct FilesItem { + private filesImage: string | Resource + private filesText: string + private fileTime: string + private fileNumber: string + + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Start }) { + Flex({ justifyContent: FlexAlign.Start }) { + Image(this.filesImage) + .width(50) + .height(50) + } + .width(60) + .margin({right:8}) + + Flex({ direction: FlexDirection.Column, justifyContent: FlexAlign.Start }) { + Text(this.filesText) + .fontSize(18) + Text(this.fileTime) + .fontSize(12) + .fontColor('#ffa9a9a9') + }.padding({ top: 5 }) + .width(150) + + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Start }) { + Text(this.fileNumber) + .fontSize(12) + .fontColor('#ffa9a9a9') + } + .padding({ left: 30, top: 25 }) + .width(100) + }.height(60) + .margin({left: 10,top: 10}) + } +} \ No newline at end of file