mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:07:07 +00:00
[Improvement] Support Vue.use to register a component (#401)
This commit is contained in:
@@ -21,13 +21,11 @@
|
||||
|
||||
<script>
|
||||
import VanButton from '../button';
|
||||
import { i18n } from '../locale';
|
||||
import { create } from '../utils';
|
||||
|
||||
export default {
|
||||
export default create({
|
||||
name: 'van-submit-bar',
|
||||
|
||||
mixins: [i18n],
|
||||
|
||||
components: {
|
||||
VanButton
|
||||
},
|
||||
@@ -66,5 +64,5 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user