[Improvement] Support Vue.use to register a component (#401)
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
``` javascript
|
||||
import { Swipe, SwipeItem } from 'vant';
|
||||
|
||||
Vue.component(Swipe.name, Swipe);
|
||||
Vue.component(SwipeItem.name, SwipeItem);
|
||||
Vue.use(Swipe);
|
||||
Vue.use(SwipeItem);
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
Reference in New Issue
Block a user