[Improvement] Support Vue.use to register a component (#401)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
``` javascript
|
||||
import { SwitchCell } from 'vant';
|
||||
|
||||
Vue.component(SwitchCell.name, SwitchCell);
|
||||
Vue.use(SwitchCell);
|
||||
```
|
||||
|
||||
### 代码演示
|
||||
|
||||
Reference in New Issue
Block a user