mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[Improvement] Support Vue.use to register a component (#401)
This commit is contained in:
6
packages/utils/install.js
Normal file
6
packages/utils/install.js
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Install function to register a component
|
||||
*/
|
||||
export default function(Vue) {
|
||||
Vue.component(this.name, this);
|
||||
}
|
Reference in New Issue
Block a user