# lui-notice

## NoticeComponent

## 使用场景

公告

## 项目中用到的地方

首页公告模块

## 代码示例

```html
<lui-notice [noticeList]="noticeData" [type]="'ugc-detail'" [id]="acId"></lui-notice>
```

## API

### 属性

| 参数           | 说明                   | 类型     | 默认值   |
| -------------- | ---------------------- | -------- | -------- |
| `[noticeList]` | 页面需要展示的值       | `list`   | ---      |
| `[type]`       | 公告的类型(可传可不传) | `String` | `common` |
| `[id]`         | 公告的id(可传可不传)   | `Number` | ``       |

### list中的obj属性

| 参数              | 说明                         | 类型     | 默认值                               |
| ----------------- | ---------------------------- | -------- | ------------------------------------ |
| `obj.id`          | 公告的id，进入公告详情时需要 | `String` | `"402880cc69375718016938068f4c0000"` |
| `obj.title`       | 公告的名称（在新窗口打开）   | `String` | `公告下载`                           |
| `obj.summary`     | 公告的摘要                   | `String` | ---                                  |
| `obj.createdDate` | 公告的创建时间               | `Number` | `1551423147851`                      |
