[Improvement] CellGroup add 'border' prop (#420)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user