# mui-course-file

## CourseFileComponent

## 使用场景

列表文档（单个）公用组件

## 项目中用到的地方

课程--课程详情 (课程资料)

## 代码示例

```html
<mui-course-file *ngFor="let item of dataList;let i = index" [data]="item" (click)="fileJump(item)"></mui-course-file>
```

## API

### 属性

| 参数     | 说明             | 类型     | 默认值 |
| -------- | ---------------- | -------- | ------ |
| `[data]` | 页面需要展示的值 | `Object` | ---    |

### data的属性

| 参数                              | 说明       | 类型                                        |
| --------------------------------- | ---------- | ------------------------------------------- |
| `obj.name`                        | 文档名称   | `String`                                    |
| `obj.description`                 | 文档描述   | `String`                                    |
| `obj.documentInfo.format`         | 文档类型   | `pdf||doc||docx||xls||xlsx||zip||ppt||pptx` |
| `obj.documentInfo.prettyFileSize` | 文档大小   | `String`                                    |
| `obj.documentInfo.views`          | 文档浏览量 | `String`                                    |
| `obj.documentInfo.downloads`     | 文档下载量 | `String`                                    |
