cell component

This commit is contained in:
cookfront
2017-02-13 17:21:46 +08:00
parent 18d5372ddb
commit 35ec796e61
3 changed files with 43 additions and 9 deletions

View File

@@ -1,15 +1,26 @@
## Cell 组件
### 基础用法
:::demo 样例代码
```html
<o2-cell title="单元格" value="单元格标题"></o2-cell>
```
:::
### API
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|-----------|-----------|-----------|-------------|-------------|
| className | 自定义额外类名 | string | '' | '' |
| icon | 左侧图标 | string | '' | '' |
| title | 左侧标题 | string | '' | '' |
| value | 右侧内容 | string | '' | '' |
| isLink | 是否为链接,链接会在右侧出现箭头 | string | '' | '' |
### Slot
| name | 描述 |
|-----------|-----------|
| - | 自定义显示内容 |
| icon | |
| name | |
| icon | 自定义icon |
| title | 自定义title |