[improvement] Area: jsx (#2446)

This commit is contained in:
neverland
2019-01-06 09:26:09 +08:00
committed by GitHub
parent f2a5c365de
commit d08c51b233
3 changed files with 35 additions and 35 deletions
+1 -8
View File
@@ -1,7 +1,4 @@
import createSfc from '../utils/create';
import createBem from '../utils/bem';
const bem = createBem('van-badge-group');
export default createSfc({
name: 'badge-group',
@@ -26,10 +23,6 @@ export default createSfc({
},
render(h) {
return (
<div class={['van-hairline--top-bottom', bem()]}>
{this.$slots.default}
</div>
);
return <div class="van-hairline--top-bottom van-badge-group">{this.$slots.default}</div>;
}
});