From 6ac8a8d2c0309e3e0a09295498cb8e890b59dbd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Fri, 9 Feb 2018 11:21:18 +0800 Subject: [PATCH] [Doc] fix manually import --- README.md | 2 +- README.zh-CN.md | 2 +- docs/markdown/en-US/quickstart.md | 2 +- docs/markdown/zh-CN/quickstart.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9ea8ae4b4..1422e6426 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ import { Button } from 'vant'; #### 2. Manually import ```js -import { Button } from 'vant/lib/button'; +import Button from 'vant/lib/button'; import 'vant/lib/vant-css/base.css'; import 'vant/lib/vant-css/button.css'; ``` diff --git a/README.zh-CN.md b/README.zh-CN.md index 90ab78423..76c8c13fa 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -59,7 +59,7 @@ import { Button } from 'vant'; #### 方式二. 按需引入组件 ```js -import { Button } from 'vant/lib/button'; +import Button from 'vant/lib/button'; import 'vant/lib/vant-css/base.css'; import 'vant/lib/vant-css/button.css'; ``` diff --git a/docs/markdown/en-US/quickstart.md b/docs/markdown/en-US/quickstart.md index 2b80c0c91..c3639a0d2 100644 --- a/docs/markdown/en-US/quickstart.md +++ b/docs/markdown/en-US/quickstart.md @@ -34,7 +34,7 @@ import { Button } from 'vant'; #### 2. Manually import ```js -import { Button } from 'vant/lib/button'; +import Button from 'vant/lib/button'; import 'vant/lib/vant-css/base.css'; import 'vant/lib/vant-css/button.css'; ``` diff --git a/docs/markdown/zh-CN/quickstart.md b/docs/markdown/zh-CN/quickstart.md index 66249ad64..6c31efe4b 100644 --- a/docs/markdown/zh-CN/quickstart.md +++ b/docs/markdown/zh-CN/quickstart.md @@ -32,7 +32,7 @@ import { Button } from 'vant'; #### 方式二. 按需引入组件 ```js -import { Button } from 'vant/lib/button'; +import Button from 'vant/lib/button'; import 'vant/lib/vant-css/base.css'; import 'vant/lib/vant-css/button.css'; ```