From 1b87cde8fbf0b2975ba08d44b12071bf26fb3884 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Wed, 23 Sep 2020 09:36:11 +0800 Subject: [PATCH] docs: fix quickstart --- README.md | 2 +- README.zh-CN.md | 2 +- docs/markdown/quickstart.en-US.md | 2 +- docs/markdown/quickstart.zh-CN.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2255e1435..a19a848e4 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ import { Button } from 'vant'; import 'vant/lib/index.css'; const app = createApp(); -Vue.use(Button); +app.use(Button); ``` See more in [Quickstart](https://youzan.github.io/vant#/en-US/quickstart). diff --git a/README.zh-CN.md b/README.zh-CN.md index 0a18164ee..e736f57ce 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -61,7 +61,7 @@ import { Button } from 'vant'; import 'vant/lib/index.css'; const app = createApp(); -Vue.use(Button); +app.use(Button); ``` vant 也支持按需引入、CDN 引入等方式,详细说明见 [快速上手](https://vant-contrib.gitee.io/vant#/zh-CN/quickstart). diff --git a/docs/markdown/quickstart.en-US.md b/docs/markdown/quickstart.en-US.md index 69088da1e..3184e46cf 100644 --- a/docs/markdown/quickstart.en-US.md +++ b/docs/markdown/quickstart.en-US.md @@ -121,7 +121,7 @@ The easiest way to use Vant is to include a CDN link in the html file, after whi vant.Toast('Message'); // Register Lazyload directive - Vue.use(vant.Lazyload); + // app.use(vant.Lazyload); ``` diff --git a/docs/markdown/quickstart.zh-CN.md b/docs/markdown/quickstart.zh-CN.md index 80eed4887..4b5554fc1 100644 --- a/docs/markdown/quickstart.zh-CN.md +++ b/docs/markdown/quickstart.zh-CN.md @@ -139,7 +139,7 @@ app.use(Vant); // 通过 CDN 引入时不会自动注册 Lazyload 组件 // 可以通过下面的方式手动注册 - Vue.use(vant.Lazyload); + // app.use(vant.Lazyload); ```