mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 16:04:04 +00:00
cell component
This commit is contained in:
@@ -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 |
|
||||
|
Reference in New Issue
Block a user