# mui-result-file

## ResultFileComponent

## 使用场景

文档列表

## 项目中用到的地方

首页全局搜索文档列表（单个组件）公共组件

## 代码示例

```html
   <mui-result-file *ngFor="let item of resFiles?.content;" [item]="item"></mui-result-file>
```

## API

### 属性

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

### item中的属性

| 参数                    | 说明           | 类型                                               | 示例                                              |
| ----------------------- | -------------- | -------------------------------------------------- | ------------------------------------------------- |
| `item.id`               | 文档的id       | `Number`                                           | `2597925`                                         |
| `item.fileType`         | 文档的类型     | `pdf||doc || docx||xls || xlsx|| zip|| ppt ||pptx` | ---                                               |
| `item.title`            | 文档的标题     | `String`                                           | `"<span style="color:red">案例</span>测试一0919"` |
| `item.categoryNamePath` | 文档的所属分类 | `String`                                           | `"电子商务"`                                      |
| `item.description`      | 文档的描述     | `String`                                           | ---                                               |
