mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
[improvement] CellGroup: jsx (#2449)
This commit is contained in:
20
packages/cell-group/index.js
Normal file
20
packages/cell-group/index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import createSfc from '../utils/create-basic';
|
||||
|
||||
export default createSfc({
|
||||
name: 'cell-group',
|
||||
|
||||
props: {
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
|
||||
render(h) {
|
||||
return (
|
||||
<div class={['van-cell-group', { 'van-hairline--top-bottom': this.border }]}>
|
||||
{this.$slots.default}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user