mirror of
https://github.com/youzan/vant.git
synced 2026-04-05 02:05:11 +08:00
[Doc] update install guide (#4083)
This commit is contained in:
@@ -105,8 +105,8 @@ Vue.use(Vant);
|
||||
var Vue = window.Vue;
|
||||
var vant = window.vant;
|
||||
|
||||
// Register components
|
||||
Vue.use(vant);
|
||||
// Register Lazyload component
|
||||
Vue.use(vant.Lazyload);
|
||||
|
||||
// Call function components
|
||||
vant.Toast('message');
|
||||
|
||||
@@ -120,8 +120,8 @@ Vue.use(Vant);
|
||||
var Vue = window.Vue;
|
||||
var vant = window.vant;
|
||||
|
||||
// 注册组件
|
||||
Vue.use(vant);
|
||||
// 注册 Lazyload 组件
|
||||
Vue.use(vant.Lazyload);
|
||||
|
||||
// 调用函数式组件
|
||||
vant.Toast('提示');
|
||||
|
||||
Reference in New Issue
Block a user