mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
[Improvement] Support Vue.use to register a component (#401)
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
import { create } from '../utils';
|
||||
|
||||
export default create({
|
||||
name: 'van-badge',
|
||||
|
||||
props: {
|
||||
@@ -30,5 +32,5 @@ export default {
|
||||
this.$emit('click', this.$parent.badges.indexOf(this));
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user