mirror of
https://github.com/youzan/vant.git
synced 2026-04-11 02:08:46 +08:00
docs(quickstart): add register Lazyload guide (#6110)
This commit is contained in:
@@ -132,6 +132,10 @@ Vue.use(Vant);
|
||||
|
||||
// 调用函数组件,弹出一个 Toast
|
||||
vant.Toast('提示');
|
||||
|
||||
// 通过 CDN 引入时不会自动注册 Lazyload 组件
|
||||
// 可以通过下面的方式手动注册
|
||||
Vue.use(vant.Lazyload);
|
||||
</script>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user