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:
@@ -7,8 +7,9 @@
|
||||
<script>
|
||||
import Cell from '../cell';
|
||||
import VanSwitch from '../switch';
|
||||
import { create } from '../utils';
|
||||
|
||||
export default {
|
||||
export default create({
|
||||
name: 'van-switch-cell',
|
||||
|
||||
components: {
|
||||
@@ -28,5 +29,5 @@ export default {
|
||||
this.$emit('change', this.value);
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user