From f7706fb179ce17659243f6f2e515ffaf60f457fd Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 18 Mar 2021 11:23:49 +0800 Subject: [PATCH] docs: add component registration link (#8378) --- docs/markdown/advanced-usage.zh-CN.md | 4 ++-- src/action-bar/README.md | 2 ++ src/action-bar/README.zh-CN.md | 2 ++ src/action-sheet/README.md | 2 ++ src/action-sheet/README.zh-CN.md | 2 ++ src/address-edit/README.md | 2 ++ src/address-edit/README.zh-CN.md | 2 ++ src/address-list/README.md | 2 ++ src/address-list/README.zh-CN.md | 2 ++ src/area/README.md | 2 ++ src/area/README.zh-CN.md | 2 ++ src/badge/README.md | 2 ++ src/badge/README.zh-CN.md | 2 ++ src/button/README.md | 2 ++ src/button/README.zh-CN.md | 2 ++ src/calendar/README.md | 2 ++ src/calendar/README.zh-CN.md | 2 ++ src/card/README.md | 2 ++ src/card/README.zh-CN.md | 2 ++ src/cascader/README.md | 2 ++ src/cascader/README.zh-CN.md | 2 ++ src/cell/README.md | 2 ++ src/cell/README.zh-CN.md | 2 ++ src/checkbox/README.md | 2 ++ src/checkbox/README.zh-CN.md | 2 ++ src/circle/README.md | 2 ++ src/circle/README.zh-CN.md | 2 ++ src/col/README.md | 2 ++ src/col/README.zh-CN.md | 2 ++ src/collapse/README.md | 2 ++ src/collapse/README.zh-CN.md | 2 ++ src/contact-card/README.md | 2 ++ src/contact-card/README.zh-CN.md | 2 ++ src/contact-edit/README.md | 2 ++ src/contact-edit/README.zh-CN.md | 2 ++ src/contact-list/README.md | 2 ++ src/contact-list/README.zh-CN.md | 2 ++ src/count-down/README.md | 2 ++ src/count-down/README.zh-CN.md | 2 ++ src/coupon-list/README.md | 2 ++ src/coupon-list/README.zh-CN.md | 2 ++ src/datetime-picker/README.md | 2 ++ src/datetime-picker/README.zh-CN.md | 2 ++ src/dialog/README.md | 2 ++ src/divider/README.md | 2 ++ src/divider/README.zh-CN.md | 2 ++ src/dropdown-menu/README.md | 2 ++ src/dropdown-menu/README.zh-CN.md | 2 ++ src/empty/README.md | 2 ++ src/empty/README.zh-CN.md | 2 ++ src/field/README.md | 2 ++ src/field/README.zh-CN.md | 2 ++ src/form/README.md | 2 ++ src/form/README.zh-CN.md | 2 ++ src/grid/README.md | 2 ++ src/grid/README.zh-CN.md | 2 ++ src/icon/README.md | 2 ++ src/icon/README.zh-CN.md | 2 ++ src/image-preview/README.md | 2 ++ src/image/README.md | 2 ++ src/image/README.zh-CN.md | 2 ++ src/index-bar/README.md | 2 ++ src/index-bar/README.zh-CN.md | 2 ++ src/lazyload/README.md | 2 ++ src/lazyload/README.zh-CN.md | 2 ++ src/list/README.md | 2 ++ src/list/README.zh-CN.md | 2 ++ src/loading/README.md | 2 ++ src/loading/README.zh-CN.md | 2 ++ src/nav-bar/README.md | 2 ++ src/nav-bar/README.zh-CN.md | 2 ++ src/notice-bar/README.md | 2 ++ src/notice-bar/README.zh-CN.md | 2 ++ src/notify/README.md | 2 ++ src/number-keyboard/README.md | 2 ++ src/number-keyboard/README.zh-CN.md | 2 ++ src/overlay/README.md | 2 ++ src/overlay/README.zh-CN.md | 2 ++ src/pagination/README.md | 2 ++ src/pagination/README.zh-CN.md | 2 ++ src/password-input/README.md | 2 ++ src/password-input/README.zh-CN.md | 2 ++ src/picker/README.md | 2 ++ src/picker/README.zh-CN.md | 2 ++ src/popover/README.md | 2 ++ src/popover/README.zh-CN.md | 2 ++ src/popup/README.md | 2 ++ src/popup/README.zh-CN.md | 2 ++ src/progress/README.md | 2 ++ src/progress/README.zh-CN.md | 2 ++ src/pull-refresh/README.md | 2 ++ src/pull-refresh/README.zh-CN.md | 2 ++ src/radio/README.md | 2 ++ src/radio/README.zh-CN.md | 2 ++ src/rate/README.md | 2 ++ src/rate/README.zh-CN.md | 2 ++ src/search/README.md | 2 ++ src/search/README.zh-CN.md | 2 ++ src/share-sheet/README.md | 2 ++ src/share-sheet/README.zh-CN.md | 2 ++ src/sidebar/README.md | 2 ++ src/sidebar/README.zh-CN.md | 2 ++ src/skeleton/README.md | 2 ++ src/skeleton/README.zh-CN.md | 2 ++ src/slider/README.md | 2 ++ src/slider/README.zh-CN.md | 2 ++ src/stepper/README.md | 2 ++ src/stepper/README.zh-CN.md | 2 ++ src/steps/README.md | 2 ++ src/steps/README.zh-CN.md | 2 ++ src/sticky/README.md | 2 ++ src/sticky/README.zh-CN.md | 2 ++ src/submit-bar/README.md | 2 ++ src/submit-bar/README.zh-CN.md | 2 ++ src/swipe-cell/README.md | 2 ++ src/swipe-cell/README.zh-CN.md | 2 ++ src/swipe/README.md | 2 ++ src/swipe/README.zh-CN.md | 2 ++ src/switch/README.md | 2 ++ src/switch/README.zh-CN.md | 2 ++ src/tab/README.md | 2 ++ src/tab/README.zh-CN.md | 2 ++ src/tabbar/README.md | 2 ++ src/tabbar/README.zh-CN.md | 2 ++ src/tag/README.md | 2 ++ src/tag/README.zh-CN.md | 2 ++ src/toast/README.md | 2 ++ src/toast/README.zh-CN.md | 2 ++ src/tree-select/README.md | 2 ++ src/tree-select/README.zh-CN.md | 2 ++ src/uploader/README.md | 2 ++ src/uploader/README.zh-CN.md | 2 ++ 132 files changed, 264 insertions(+), 2 deletions(-) diff --git a/docs/markdown/advanced-usage.zh-CN.md b/docs/markdown/advanced-usage.zh-CN.md index 52e25a59e..f91348372 100644 --- a/docs/markdown/advanced-usage.zh-CN.md +++ b/docs/markdown/advanced-usage.zh-CN.md @@ -21,11 +21,11 @@ import { createApp } from 'vue'; const app = createApp(); // 方式一. 通过 app.use 注册 -// 注册完成后,在模板中通过 VanButton 或 van-button 标签均可使用按钮组件 +// 注册完成后,在模板中通过 标签来使用按钮组件 app.use(Button); // 方式二. 通过 app.component 注册 -// 注册完成后,在模板中通过 van-button 标签即可使用按钮组件 +// 注册完成后,在模板中通过 标签来使用按钮组件 app.component(Button.name, Button); ``` diff --git a/src/action-bar/README.md b/src/action-bar/README.md index 462d492ce..0c95c103a 100644 --- a/src/action-bar/README.md +++ b/src/action-bar/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { ActionBar, ActionBarIcon, ActionBarButton } from 'vant'; diff --git a/src/action-bar/README.zh-CN.md b/src/action-bar/README.zh-CN.md index 469ff4412..0274bb0f3 100644 --- a/src/action-bar/README.zh-CN.md +++ b/src/action-bar/README.zh-CN.md @@ -2,6 +2,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { ActionBar, ActionBarIcon, ActionBarButton } from 'vant'; diff --git a/src/action-sheet/README.md b/src/action-sheet/README.md index 51cc76843..93111b823 100644 --- a/src/action-sheet/README.md +++ b/src/action-sheet/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { ActionSheet } from 'vant'; diff --git a/src/action-sheet/README.zh-CN.md b/src/action-sheet/README.zh-CN.md index b239aa02d..266e27ee1 100644 --- a/src/action-sheet/README.zh-CN.md +++ b/src/action-sheet/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { ActionSheet } from 'vant'; diff --git a/src/address-edit/README.md b/src/address-edit/README.md index 025df38d8..fcef16651 100644 --- a/src/address-edit/README.md +++ b/src/address-edit/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { AddressEdit } from 'vant'; diff --git a/src/address-edit/README.zh-CN.md b/src/address-edit/README.zh-CN.md index 62a4f78a2..1429d4ae1 100644 --- a/src/address-edit/README.zh-CN.md +++ b/src/address-edit/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { AddressEdit } from 'vant'; diff --git a/src/address-list/README.md b/src/address-list/README.md index b6d2ab11b..2c6c2affc 100644 --- a/src/address-list/README.md +++ b/src/address-list/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { AddressList } from 'vant'; diff --git a/src/address-list/README.zh-CN.md b/src/address-list/README.zh-CN.md index acd3080a6..1004b38e7 100644 --- a/src/address-list/README.zh-CN.md +++ b/src/address-list/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { AddressList } from 'vant'; diff --git a/src/area/README.md b/src/area/README.md index 4df63c2dd..091297377 100644 --- a/src/area/README.md +++ b/src/area/README.md @@ -6,6 +6,8 @@ The Picker component is usually used with [Popup](#/en-US/popup) Component. ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Area } from 'vant'; diff --git a/src/area/README.zh-CN.md b/src/area/README.zh-CN.md index ea8f4ea68..4b9a7a5ba 100644 --- a/src/area/README.zh-CN.md +++ b/src/area/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Area } from 'vant'; diff --git a/src/badge/README.md b/src/badge/README.md index c442a3cba..c5a4d10bc 100644 --- a/src/badge/README.md +++ b/src/badge/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Badge } from 'vant'; diff --git a/src/badge/README.zh-CN.md b/src/badge/README.zh-CN.md index 1b76865ac..925928fd0 100644 --- a/src/badge/README.zh-CN.md +++ b/src/badge/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Badge } from 'vant'; diff --git a/src/button/README.md b/src/button/README.md index 52a0213ca..1b4692a80 100644 --- a/src/button/README.md +++ b/src/button/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Button } from 'vant'; diff --git a/src/button/README.zh-CN.md b/src/button/README.zh-CN.md index f68786306..f8387e5b8 100644 --- a/src/button/README.zh-CN.md +++ b/src/button/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Button } from 'vant'; diff --git a/src/calendar/README.md b/src/calendar/README.md index 6666f9039..6fc2d19bb 100644 --- a/src/calendar/README.md +++ b/src/calendar/README.md @@ -6,6 +6,8 @@ Calendar component for selecting dates or date ranges. ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Calendar } from 'vant'; diff --git a/src/calendar/README.zh-CN.md b/src/calendar/README.zh-CN.md index a74c02f01..53889d9fd 100644 --- a/src/calendar/README.zh-CN.md +++ b/src/calendar/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Calendar } from 'vant'; diff --git a/src/card/README.md b/src/card/README.md index 29fa6b000..3d70bf171 100644 --- a/src/card/README.md +++ b/src/card/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Card } from 'vant'; diff --git a/src/card/README.zh-CN.md b/src/card/README.zh-CN.md index 5faeed382..af7dd96cb 100644 --- a/src/card/README.zh-CN.md +++ b/src/card/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Card } from 'vant'; diff --git a/src/cascader/README.md b/src/cascader/README.md index 4c6dfe7bc..612f0e631 100644 --- a/src/cascader/README.md +++ b/src/cascader/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Cascader } from 'vant'; diff --git a/src/cascader/README.zh-CN.md b/src/cascader/README.zh-CN.md index b7db776d9..bbc4bb983 100644 --- a/src/cascader/README.zh-CN.md +++ b/src/cascader/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Cascader } from 'vant'; diff --git a/src/cell/README.md b/src/cell/README.md index b64a53573..362d2caa2 100644 --- a/src/cell/README.md +++ b/src/cell/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Cell, CellGroup } from 'vant'; diff --git a/src/cell/README.zh-CN.md b/src/cell/README.zh-CN.md index e68c5fa75..364d0ff27 100644 --- a/src/cell/README.zh-CN.md +++ b/src/cell/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Cell, CellGroup } from 'vant'; diff --git a/src/checkbox/README.md b/src/checkbox/README.md index 115f69a13..be33b60c2 100644 --- a/src/checkbox/README.md +++ b/src/checkbox/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Checkbox, CheckboxGroup } from 'vant'; diff --git a/src/checkbox/README.zh-CN.md b/src/checkbox/README.zh-CN.md index 7079c6714..7a1aa8509 100644 --- a/src/checkbox/README.zh-CN.md +++ b/src/checkbox/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Checkbox, CheckboxGroup } from 'vant'; diff --git a/src/circle/README.md b/src/circle/README.md index 2161a54ee..dcabb362a 100644 --- a/src/circle/README.md +++ b/src/circle/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Circle } from 'vant'; diff --git a/src/circle/README.zh-CN.md b/src/circle/README.zh-CN.md index 417a90527..97f3d2350 100644 --- a/src/circle/README.zh-CN.md +++ b/src/circle/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Circle } from 'vant'; diff --git a/src/col/README.md b/src/col/README.md index cee76f536..c0da6a62f 100644 --- a/src/col/README.md +++ b/src/col/README.md @@ -6,6 +6,8 @@ Quickly and easily create layouts with `van-row` and `van-col`. ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Col, Row } from 'vant'; diff --git a/src/col/README.zh-CN.md b/src/col/README.zh-CN.md index 24d4037a0..4c9e76ea7 100644 --- a/src/col/README.zh-CN.md +++ b/src/col/README.zh-CN.md @@ -6,6 +6,8 @@ Layout 提供了 `van-row` 和 `van-col` 两个组件来进行行列布局。 ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Col, Row } from 'vant'; diff --git a/src/collapse/README.md b/src/collapse/README.md index 706001fa6..b1dc400a7 100644 --- a/src/collapse/README.md +++ b/src/collapse/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Collapse, CollapseItem } from 'vant'; diff --git a/src/collapse/README.zh-CN.md b/src/collapse/README.zh-CN.md index 7f6572272..0d4b6dcdc 100644 --- a/src/collapse/README.zh-CN.md +++ b/src/collapse/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Collapse, CollapseItem } from 'vant'; diff --git a/src/contact-card/README.md b/src/contact-card/README.md index 8ab1cf4f8..14932dfa6 100644 --- a/src/contact-card/README.md +++ b/src/contact-card/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { ContactCard } from 'vant'; diff --git a/src/contact-card/README.zh-CN.md b/src/contact-card/README.zh-CN.md index b2467d269..544786aed 100644 --- a/src/contact-card/README.zh-CN.md +++ b/src/contact-card/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { ContactCard } from 'vant'; diff --git a/src/contact-edit/README.md b/src/contact-edit/README.md index 9f51ac3a8..41b08550e 100644 --- a/src/contact-edit/README.md +++ b/src/contact-edit/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { ContactEdit } from 'vant'; diff --git a/src/contact-edit/README.zh-CN.md b/src/contact-edit/README.zh-CN.md index 7849cf6ea..7f4169045 100644 --- a/src/contact-edit/README.zh-CN.md +++ b/src/contact-edit/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { ContactEdit } from 'vant'; diff --git a/src/contact-list/README.md b/src/contact-list/README.md index 3e082b399..bbc93355d 100644 --- a/src/contact-list/README.md +++ b/src/contact-list/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { ContactList } from 'vant'; diff --git a/src/contact-list/README.zh-CN.md b/src/contact-list/README.zh-CN.md index 3b7c22c2a..4b3949875 100644 --- a/src/contact-list/README.zh-CN.md +++ b/src/contact-list/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { ContactList } from 'vant'; diff --git a/src/count-down/README.md b/src/count-down/README.md index 2dcc11b59..cefccbdda 100644 --- a/src/count-down/README.md +++ b/src/count-down/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { CountDown } from 'vant'; diff --git a/src/count-down/README.zh-CN.md b/src/count-down/README.zh-CN.md index bcd718daa..79879c8b8 100644 --- a/src/count-down/README.zh-CN.md +++ b/src/count-down/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { CountDown } from 'vant'; diff --git a/src/coupon-list/README.md b/src/coupon-list/README.md index 1b44f267c..74d6a32df 100644 --- a/src/coupon-list/README.md +++ b/src/coupon-list/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { CouponCell, CouponList } from 'vant'; diff --git a/src/coupon-list/README.zh-CN.md b/src/coupon-list/README.zh-CN.md index 6298580f6..887732291 100644 --- a/src/coupon-list/README.zh-CN.md +++ b/src/coupon-list/README.zh-CN.md @@ -2,6 +2,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { CouponCell, CouponList } from 'vant'; diff --git a/src/datetime-picker/README.md b/src/datetime-picker/README.md index d499f1b4d..8c69e7863 100644 --- a/src/datetime-picker/README.md +++ b/src/datetime-picker/README.md @@ -6,6 +6,8 @@ Used to select time, support date and time dimensions, usually used with the [Po ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { DatetimePicker } from 'vant'; diff --git a/src/datetime-picker/README.zh-CN.md b/src/datetime-picker/README.zh-CN.md index 8ed72d3e1..7add723dd 100644 --- a/src/datetime-picker/README.zh-CN.md +++ b/src/datetime-picker/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { DatetimePicker } from 'vant'; diff --git a/src/dialog/README.md b/src/dialog/README.md index 629b59f4b..6c1038bba 100644 --- a/src/dialog/README.md +++ b/src/dialog/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Dialog } from 'vant'; diff --git a/src/divider/README.md b/src/divider/README.md index a7d044c1f..0232afffd 100644 --- a/src/divider/README.md +++ b/src/divider/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Divider } from 'vant'; diff --git a/src/divider/README.zh-CN.md b/src/divider/README.zh-CN.md index f8097a660..98011878a 100644 --- a/src/divider/README.zh-CN.md +++ b/src/divider/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Divider } from 'vant'; diff --git a/src/dropdown-menu/README.md b/src/dropdown-menu/README.md index f286ed726..9c1df9c7a 100644 --- a/src/dropdown-menu/README.md +++ b/src/dropdown-menu/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { DropdownMenu, DropdownItem } from 'vant'; diff --git a/src/dropdown-menu/README.zh-CN.md b/src/dropdown-menu/README.zh-CN.md index f8cc29894..49ca84151 100644 --- a/src/dropdown-menu/README.zh-CN.md +++ b/src/dropdown-menu/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { DropdownMenu, DropdownItem } from 'vant'; diff --git a/src/empty/README.md b/src/empty/README.md index c1e3fce70..8b5f6f6f4 100644 --- a/src/empty/README.md +++ b/src/empty/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Empty } from 'vant'; diff --git a/src/empty/README.zh-CN.md b/src/empty/README.zh-CN.md index 350796a64..94ca6319c 100644 --- a/src/empty/README.zh-CN.md +++ b/src/empty/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Empty } from 'vant'; diff --git a/src/field/README.md b/src/field/README.md index 20f6e1de9..26159d636 100644 --- a/src/field/README.md +++ b/src/field/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Field } from 'vant'; diff --git a/src/field/README.zh-CN.md b/src/field/README.zh-CN.md index 9c3fc36c5..e5087b169 100644 --- a/src/field/README.zh-CN.md +++ b/src/field/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Field } from 'vant'; diff --git a/src/form/README.md b/src/form/README.md index 858744f32..dcc43b921 100644 --- a/src/form/README.md +++ b/src/form/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Form } from 'vant'; diff --git a/src/form/README.zh-CN.md b/src/form/README.zh-CN.md index 52ba8427a..093079da2 100644 --- a/src/form/README.zh-CN.md +++ b/src/form/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Form } from 'vant'; diff --git a/src/grid/README.md b/src/grid/README.md index ad5d7df33..b4f2f39ad 100644 --- a/src/grid/README.md +++ b/src/grid/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Grid, GridItem } from 'vant'; diff --git a/src/grid/README.zh-CN.md b/src/grid/README.zh-CN.md index 505056bbf..2248c9571 100644 --- a/src/grid/README.zh-CN.md +++ b/src/grid/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Grid, GridItem } from 'vant'; diff --git a/src/icon/README.md b/src/icon/README.md index 6ebf87768..4396a222c 100644 --- a/src/icon/README.md +++ b/src/icon/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Icon } from 'vant'; diff --git a/src/icon/README.zh-CN.md b/src/icon/README.zh-CN.md index 8fd284579..a9e65d848 100644 --- a/src/icon/README.zh-CN.md +++ b/src/icon/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Icon } from 'vant'; diff --git a/src/image-preview/README.md b/src/image-preview/README.md index b37846522..09e8d5d47 100644 --- a/src/image-preview/README.md +++ b/src/image-preview/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { ImagePreview } from 'vant'; diff --git a/src/image/README.md b/src/image/README.md index 710da86fe..87c308bdf 100644 --- a/src/image/README.md +++ b/src/image/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Image as VanImage } from 'vant'; diff --git a/src/image/README.zh-CN.md b/src/image/README.zh-CN.md index 2923a163d..360691feb 100644 --- a/src/image/README.zh-CN.md +++ b/src/image/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Image as VanImage } from 'vant'; diff --git a/src/index-bar/README.md b/src/index-bar/README.md index 30855d527..35ea354e2 100644 --- a/src/index-bar/README.md +++ b/src/index-bar/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { IndexBar } from 'vant'; diff --git a/src/index-bar/README.zh-CN.md b/src/index-bar/README.zh-CN.md index 970751e91..671129228 100644 --- a/src/index-bar/README.zh-CN.md +++ b/src/index-bar/README.zh-CN.md @@ -2,6 +2,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { IndexBar, IndexAnchor } from 'vant'; diff --git a/src/lazyload/README.md b/src/lazyload/README.md index fe23643a8..90e5993f4 100644 --- a/src/lazyload/README.md +++ b/src/lazyload/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Lazyload } from 'vant'; diff --git a/src/lazyload/README.zh-CN.md b/src/lazyload/README.zh-CN.md index 99b5750b3..9779a1c37 100644 --- a/src/lazyload/README.zh-CN.md +++ b/src/lazyload/README.zh-CN.md @@ -2,6 +2,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + `Lazyload` 是 `Vue` 指令,使用前需要对指令进行注册。 ```js diff --git a/src/list/README.md b/src/list/README.md index b3944a10d..af2a27309 100644 --- a/src/list/README.md +++ b/src/list/README.md @@ -6,6 +6,8 @@ A list component to show items and control loading status. ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { List } from 'vant'; diff --git a/src/list/README.zh-CN.md b/src/list/README.zh-CN.md index 47de211a5..e84f7929c 100644 --- a/src/list/README.zh-CN.md +++ b/src/list/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { List } from 'vant'; diff --git a/src/loading/README.md b/src/loading/README.md index 60bcba380..3f2014378 100644 --- a/src/loading/README.md +++ b/src/loading/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Loading } from 'vant'; diff --git a/src/loading/README.zh-CN.md b/src/loading/README.zh-CN.md index 1fefca376..ddd2c200e 100644 --- a/src/loading/README.zh-CN.md +++ b/src/loading/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Loading } from 'vant'; diff --git a/src/nav-bar/README.md b/src/nav-bar/README.md index c2f20edce..dd7e96fb7 100644 --- a/src/nav-bar/README.md +++ b/src/nav-bar/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { NavBar } from 'vant'; diff --git a/src/nav-bar/README.zh-CN.md b/src/nav-bar/README.zh-CN.md index c5f5a1bec..2d3c8df81 100644 --- a/src/nav-bar/README.zh-CN.md +++ b/src/nav-bar/README.zh-CN.md @@ -2,6 +2,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { NavBar } from 'vant'; diff --git a/src/notice-bar/README.md b/src/notice-bar/README.md index ac2fb637d..349e21dde 100644 --- a/src/notice-bar/README.md +++ b/src/notice-bar/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { NoticeBar } from 'vant'; diff --git a/src/notice-bar/README.zh-CN.md b/src/notice-bar/README.zh-CN.md index f9fbef571..a2265dcd4 100644 --- a/src/notice-bar/README.zh-CN.md +++ b/src/notice-bar/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { NoticeBar } from 'vant'; diff --git a/src/notify/README.md b/src/notify/README.md index 55dcb96f2..3c16ee98e 100644 --- a/src/notify/README.md +++ b/src/notify/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Notify } from 'vant'; diff --git a/src/number-keyboard/README.md b/src/number-keyboard/README.md index e4b1e295f..c2a0208e3 100644 --- a/src/number-keyboard/README.md +++ b/src/number-keyboard/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { NumberKeyboard } from 'vant'; diff --git a/src/number-keyboard/README.zh-CN.md b/src/number-keyboard/README.zh-CN.md index 17d157c97..acef3c026 100644 --- a/src/number-keyboard/README.zh-CN.md +++ b/src/number-keyboard/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { NumberKeyboard } from 'vant'; diff --git a/src/overlay/README.md b/src/overlay/README.md index 15580ad80..755948f34 100644 --- a/src/overlay/README.md +++ b/src/overlay/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Overlay } from 'vant'; diff --git a/src/overlay/README.zh-CN.md b/src/overlay/README.zh-CN.md index 1b5b7fb1b..73357d1ba 100644 --- a/src/overlay/README.zh-CN.md +++ b/src/overlay/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Overlay } from 'vant'; diff --git a/src/pagination/README.md b/src/pagination/README.md index feb23f6d3..4f5d0c298 100644 --- a/src/pagination/README.md +++ b/src/pagination/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Pagination } from 'vant'; diff --git a/src/pagination/README.zh-CN.md b/src/pagination/README.zh-CN.md index 0054131b7..5f8873abb 100644 --- a/src/pagination/README.zh-CN.md +++ b/src/pagination/README.zh-CN.md @@ -2,6 +2,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Pagination } from 'vant'; diff --git a/src/password-input/README.md b/src/password-input/README.md index c4b4d81ed..cfc92ec6b 100644 --- a/src/password-input/README.md +++ b/src/password-input/README.md @@ -6,6 +6,8 @@ The PasswordInput component is usually used with [NumberKeyboard](#/en-US/number ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { PasswordInput, NumberKeyboard } from 'vant'; diff --git a/src/password-input/README.zh-CN.md b/src/password-input/README.zh-CN.md index 851e1450d..b4943347b 100644 --- a/src/password-input/README.zh-CN.md +++ b/src/password-input/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { PasswordInput, NumberKeyboard } from 'vant'; diff --git a/src/picker/README.md b/src/picker/README.md index 21bbab124..524e61a8b 100644 --- a/src/picker/README.md +++ b/src/picker/README.md @@ -6,6 +6,8 @@ The Picker component is usually used with [Popup](#/en-US/popup) Component. ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Picker } from 'vant'; diff --git a/src/picker/README.zh-CN.md b/src/picker/README.zh-CN.md index bb92b3158..2ff187a5d 100644 --- a/src/picker/README.zh-CN.md +++ b/src/picker/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Picker } from 'vant'; diff --git a/src/popover/README.md b/src/popover/README.md index 34b7de05e..46f850fe9 100644 --- a/src/popover/README.md +++ b/src/popover/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Popover } from 'vant'; diff --git a/src/popover/README.zh-CN.md b/src/popover/README.zh-CN.md index 596357611..aca4bc96d 100644 --- a/src/popover/README.zh-CN.md +++ b/src/popover/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Popover } from 'vant'; diff --git a/src/popup/README.md b/src/popup/README.md index 7cc4b99b9..160e37d42 100644 --- a/src/popup/README.md +++ b/src/popup/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Popup } from 'vant'; diff --git a/src/popup/README.zh-CN.md b/src/popup/README.zh-CN.md index 7564f76d3..a3a30f8e2 100644 --- a/src/popup/README.zh-CN.md +++ b/src/popup/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Popup } from 'vant'; diff --git a/src/progress/README.md b/src/progress/README.md index 6ee814ae9..db3f0435b 100644 --- a/src/progress/README.md +++ b/src/progress/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Progress } from 'vant'; diff --git a/src/progress/README.zh-CN.md b/src/progress/README.zh-CN.md index 8f603d73f..0cd02da40 100644 --- a/src/progress/README.zh-CN.md +++ b/src/progress/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Progress } from 'vant'; diff --git a/src/pull-refresh/README.md b/src/pull-refresh/README.md index c99567e6a..0172056f3 100644 --- a/src/pull-refresh/README.md +++ b/src/pull-refresh/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { PullRefresh } from 'vant'; diff --git a/src/pull-refresh/README.zh-CN.md b/src/pull-refresh/README.zh-CN.md index 2a085cfa8..4ef35584a 100644 --- a/src/pull-refresh/README.zh-CN.md +++ b/src/pull-refresh/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { PullRefresh } from 'vant'; diff --git a/src/radio/README.md b/src/radio/README.md index 0c006a8ea..bac2a88ad 100644 --- a/src/radio/README.md +++ b/src/radio/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { RadioGroup, Radio } from 'vant'; diff --git a/src/radio/README.zh-CN.md b/src/radio/README.zh-CN.md index 4952322d2..007f04aa8 100644 --- a/src/radio/README.zh-CN.md +++ b/src/radio/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { RadioGroup, Radio } from 'vant'; diff --git a/src/rate/README.md b/src/rate/README.md index 160e85981..d0599792b 100644 --- a/src/rate/README.md +++ b/src/rate/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Rate } from 'vant'; diff --git a/src/rate/README.zh-CN.md b/src/rate/README.zh-CN.md index 11d13da80..e3f22f0d0 100644 --- a/src/rate/README.zh-CN.md +++ b/src/rate/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Rate } from 'vant'; diff --git a/src/search/README.md b/src/search/README.md index 0ca581c35..36b539382 100644 --- a/src/search/README.md +++ b/src/search/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Search } from 'vant'; diff --git a/src/search/README.zh-CN.md b/src/search/README.zh-CN.md index fbc237f69..fa09c85c1 100644 --- a/src/search/README.zh-CN.md +++ b/src/search/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Search } from 'vant'; diff --git a/src/share-sheet/README.md b/src/share-sheet/README.md index 647f27f90..fdf86823f 100644 --- a/src/share-sheet/README.md +++ b/src/share-sheet/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { ShareSheet } from 'vant'; diff --git a/src/share-sheet/README.zh-CN.md b/src/share-sheet/README.zh-CN.md index c53d32ba2..c1469b047 100644 --- a/src/share-sheet/README.zh-CN.md +++ b/src/share-sheet/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { ShareSheet } from 'vant'; diff --git a/src/sidebar/README.md b/src/sidebar/README.md index 2d916fe02..bb461a085 100644 --- a/src/sidebar/README.md +++ b/src/sidebar/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Sidebar, SidebarItem } from 'vant'; diff --git a/src/sidebar/README.zh-CN.md b/src/sidebar/README.zh-CN.md index 71bb69af1..aa27af07d 100644 --- a/src/sidebar/README.zh-CN.md +++ b/src/sidebar/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Sidebar, SidebarItem } from 'vant'; diff --git a/src/skeleton/README.md b/src/skeleton/README.md index cacc893f2..fa7291f8f 100644 --- a/src/skeleton/README.md +++ b/src/skeleton/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Skeleton } from 'vant'; diff --git a/src/skeleton/README.zh-CN.md b/src/skeleton/README.zh-CN.md index c35d19881..a61e63460 100644 --- a/src/skeleton/README.zh-CN.md +++ b/src/skeleton/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Skeleton } from 'vant'; diff --git a/src/slider/README.md b/src/slider/README.md index 49c970bf4..618a9094b 100644 --- a/src/slider/README.md +++ b/src/slider/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Slider } from 'vant'; diff --git a/src/slider/README.zh-CN.md b/src/slider/README.zh-CN.md index 13b0fc74a..fc02aec95 100644 --- a/src/slider/README.zh-CN.md +++ b/src/slider/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Slider } from 'vant'; diff --git a/src/stepper/README.md b/src/stepper/README.md index cb8092725..c90a92578 100644 --- a/src/stepper/README.md +++ b/src/stepper/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Stepper } from 'vant'; diff --git a/src/stepper/README.zh-CN.md b/src/stepper/README.zh-CN.md index b7b1839eb..98e22565c 100644 --- a/src/stepper/README.zh-CN.md +++ b/src/stepper/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Stepper } from 'vant'; diff --git a/src/steps/README.md b/src/steps/README.md index 39630d5d3..567a71285 100644 --- a/src/steps/README.md +++ b/src/steps/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Step, Steps } from 'vant'; diff --git a/src/steps/README.zh-CN.md b/src/steps/README.zh-CN.md index e6980cb10..c8fed5b44 100644 --- a/src/steps/README.zh-CN.md +++ b/src/steps/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Step, Steps } from 'vant'; diff --git a/src/sticky/README.md b/src/sticky/README.md index 085344814..af3464ee8 100644 --- a/src/sticky/README.md +++ b/src/sticky/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Sticky } from 'vant'; diff --git a/src/sticky/README.zh-CN.md b/src/sticky/README.zh-CN.md index 0bf028513..354e146ca 100644 --- a/src/sticky/README.zh-CN.md +++ b/src/sticky/README.zh-CN.md @@ -6,6 +6,8 @@ Sticky 组件与 CSS 中 `position: sticky` 属性实现的效果一致,当组 ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Sticky } from 'vant'; diff --git a/src/submit-bar/README.md b/src/submit-bar/README.md index 6b9579810..08ad697f4 100644 --- a/src/submit-bar/README.md +++ b/src/submit-bar/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { SubmitBar } from 'vant'; diff --git a/src/submit-bar/README.zh-CN.md b/src/submit-bar/README.zh-CN.md index 06c0184d3..0b48325ed 100644 --- a/src/submit-bar/README.zh-CN.md +++ b/src/submit-bar/README.zh-CN.md @@ -2,6 +2,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { SubmitBar } from 'vant'; diff --git a/src/swipe-cell/README.md b/src/swipe-cell/README.md index e8466f9b4..98c6a0a72 100644 --- a/src/swipe-cell/README.md +++ b/src/swipe-cell/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { SwipeCell } from 'vant'; diff --git a/src/swipe-cell/README.zh-CN.md b/src/swipe-cell/README.zh-CN.md index 125cbc7ae..718025c09 100644 --- a/src/swipe-cell/README.zh-CN.md +++ b/src/swipe-cell/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { SwipeCell } from 'vant'; diff --git a/src/swipe/README.md b/src/swipe/README.md index 8e9056939..e7430723a 100644 --- a/src/swipe/README.md +++ b/src/swipe/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Swipe, SwipeItem } from 'vant'; diff --git a/src/swipe/README.zh-CN.md b/src/swipe/README.zh-CN.md index 6c53d670d..4c9811c74 100644 --- a/src/swipe/README.zh-CN.md +++ b/src/swipe/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Swipe, SwipeItem } from 'vant'; diff --git a/src/switch/README.md b/src/switch/README.md index 9590e67f9..8107f488d 100644 --- a/src/switch/README.md +++ b/src/switch/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Switch } from 'vant'; diff --git a/src/switch/README.zh-CN.md b/src/switch/README.zh-CN.md index a94f7f929..b682a4b4f 100644 --- a/src/switch/README.zh-CN.md +++ b/src/switch/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Switch } from 'vant'; diff --git a/src/tab/README.md b/src/tab/README.md index fff224c05..60f910148 100644 --- a/src/tab/README.md +++ b/src/tab/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Tab, Tabs } from 'vant'; diff --git a/src/tab/README.zh-CN.md b/src/tab/README.zh-CN.md index 71b072063..418ec9f99 100644 --- a/src/tab/README.zh-CN.md +++ b/src/tab/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Tab, Tabs } from 'vant'; diff --git a/src/tabbar/README.md b/src/tabbar/README.md index b72d6311b..f2b038054 100644 --- a/src/tabbar/README.md +++ b/src/tabbar/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Tabbar, TabbarItem } from 'vant'; diff --git a/src/tabbar/README.zh-CN.md b/src/tabbar/README.zh-CN.md index 030c420cf..68b890af8 100644 --- a/src/tabbar/README.zh-CN.md +++ b/src/tabbar/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Tabbar, TabbarItem } from 'vant'; diff --git a/src/tag/README.md b/src/tag/README.md index 6c418995a..328c9eb56 100644 --- a/src/tag/README.md +++ b/src/tag/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Tag } from 'vant'; diff --git a/src/tag/README.zh-CN.md b/src/tag/README.zh-CN.md index dd3815ac9..d09ae1deb 100644 --- a/src/tag/README.zh-CN.md +++ b/src/tag/README.zh-CN.md @@ -2,6 +2,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Tag } from 'vant'; diff --git a/src/toast/README.md b/src/toast/README.md index 35640fc0b..9aaa78449 100644 --- a/src/toast/README.md +++ b/src/toast/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Toast } from 'vant'; diff --git a/src/toast/README.zh-CN.md b/src/toast/README.zh-CN.md index 3f9a760f7..a5857c4d3 100644 --- a/src/toast/README.zh-CN.md +++ b/src/toast/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Toast } from 'vant'; diff --git a/src/tree-select/README.md b/src/tree-select/README.md index f950324dd..33be2d86d 100644 --- a/src/tree-select/README.md +++ b/src/tree-select/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { TreeSelect } from 'vant'; diff --git a/src/tree-select/README.zh-CN.md b/src/tree-select/README.zh-CN.md index 8a2cf4ac9..451ee0a40 100644 --- a/src/tree-select/README.zh-CN.md +++ b/src/tree-select/README.zh-CN.md @@ -2,6 +2,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { TreeSelect } from 'vant'; diff --git a/src/uploader/README.md b/src/uploader/README.md index 4de7ae90f..3095985b5 100644 --- a/src/uploader/README.md +++ b/src/uploader/README.md @@ -2,6 +2,8 @@ ### Install +Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。 + ```js import { createApp } from 'vue'; import { Uploader } from 'vant'; diff --git a/src/uploader/README.zh-CN.md b/src/uploader/README.zh-CN.md index 77e27caf7..2c630cc36 100644 --- a/src/uploader/README.zh-CN.md +++ b/src/uploader/README.zh-CN.md @@ -6,6 +6,8 @@ ### 引入 +通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。 + ```js import { createApp } from 'vue'; import { Uploader } from 'vant';