mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[improvement] use component name (#2450)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import createSfc from '../utils/create-basic';
|
||||
import { use } from '../utils';
|
||||
|
||||
export default createSfc({
|
||||
name: 'cell-group',
|
||||
const [sfc, bem] = use('cell-group');
|
||||
|
||||
export default sfc({
|
||||
props: {
|
||||
border: {
|
||||
type: Boolean,
|
||||
@@ -12,7 +12,7 @@ export default createSfc({
|
||||
|
||||
render(h) {
|
||||
return (
|
||||
<div class={['van-cell-group', { 'van-hairline--top-bottom': this.border }]}>
|
||||
<div class={[bem(), { 'van-hairline--top-bottom': this.border }]}>
|
||||
{this.$slots.default}
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user