[improvement] use component name (#2450)

This commit is contained in:
neverland
2019-01-06 23:08:14 +08:00
committed by GitHub
parent e437e9c10d
commit bf50db9ea0
13 changed files with 87 additions and 76 deletions

View File

@@ -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>
);