mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Improvement] CellGroup add 'border' prop (#420)
This commit is contained in:
parent
c455301129
commit
51ce4d0843
@ -63,7 +63,13 @@ Vue.use(CellGroup);
|
||||
</van-cell-group>
|
||||
```
|
||||
|
||||
### API
|
||||
### CellGroup API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| border | Whether to show outer border | `Boolean` | `true` | - |
|
||||
|
||||
### Cell API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
|
@ -70,7 +70,13 @@ Vue.use(CellGroup);
|
||||
</van-cell-group>
|
||||
```
|
||||
|
||||
### API
|
||||
### CellGroup API
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| border | 是否显示外边框 | `Boolean` | `true` | - |
|
||||
|
||||
### Cell API
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="van-cell-group van-hairline--top-bottom">
|
||||
<div class="van-cell-group" :class="{ 'van-hairline--top-bottom': border }">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
@ -8,6 +8,13 @@
|
||||
import { create } from '../utils';
|
||||
|
||||
export default create({
|
||||
name: 'van-cell-group'
|
||||
name: 'van-cell-group',
|
||||
|
||||
props: {
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user