# lui-result-file

## ResultFileComponent

## 使用场景

全局（文档）搜索功能

## 项目中用到的地方

首页（按名称搜索）-文档列表

## 代码示例

```html
<lui-result-file  *ngFor="let item of itemList;"  [item]="item"></lui-result-file>
```

## API

### 属性

| 参数     | 说明         | 类型     | 默认值 |
| -------- | ------------ | -------- | ------ |
| `[item]` | 单个文档对象 | `Object` | ----   |

### item中的属性

| 参数                    | 说明                                   | 类型     | 默认值 |
| ----------------------- | -------------------------------------- | -------- | ------ |
| `data.id`               | 文档id                                 | `Number` | ----   |
| `data.fileType`         | 文档类型（pptx、pdf、docx、xlsx、zip） | `String` | ----   |
| `data.title`            | 文档标题                               | `String` | ----   |
| `data.categoryNamePath` | 文档所属分类                           | `String` | ----   |
| `data.description`      | 文档描述                               | `String` | ----   |
| `data.content`          | 文档内容                               | `String` | ----   |
