[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,12 +1,9 @@
import { use } from '../utils';
import Info from '../info';
import createSfc from '../utils/create';
import createBem from '../utils/bem';
const bem = createBem('van-badge');
export default createSfc({
name: 'badge',
const [sfc, bem] = use('badge');
export default sfc({
props: {
url: String,
info: [String, Number],