docs: add component registration link (#8378)

This commit is contained in:
neverland 2021-03-18 11:23:49 +08:00 committed by GitHub
parent 8643ffdb8d
commit f7706fb179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
132 changed files with 264 additions and 2 deletions

View File

@ -21,11 +21,11 @@ import { createApp } from 'vue';
const app = createApp(); const app = createApp();
// 方式一. 通过 app.use 注册 // 方式一. 通过 app.use 注册
// 注册完成后,在模板中通过 VanButton 或 van-button 标签均可使用按钮组件 // 注册完成后,在模板中通过 <van-button><VanButton> 标签来使用按钮组件
app.use(Button); app.use(Button);
// 方式二. 通过 app.component 注册 // 方式二. 通过 app.component 注册
// 注册完成后,在模板中通过 van-button 标签即可使用按钮组件 // 注册完成后,在模板中通过 <van-button> 标签来使用按钮组件
app.component(Button.name, Button); app.component(Button.name, Button);
``` ```

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ActionBar, ActionBarIcon, ActionBarButton } from 'vant'; import { ActionBar, ActionBarIcon, ActionBarButton } from 'vant';

View File

@ -2,6 +2,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ActionBar, ActionBarIcon, ActionBarButton } from 'vant'; import { ActionBar, ActionBarIcon, ActionBarButton } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ActionSheet } from 'vant'; import { ActionSheet } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ActionSheet } from 'vant'; import { ActionSheet } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { AddressEdit } from 'vant'; import { AddressEdit } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { AddressEdit } from 'vant'; import { AddressEdit } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { AddressList } from 'vant'; import { AddressList } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { AddressList } from 'vant'; import { AddressList } from 'vant';

View File

@ -6,6 +6,8 @@ The Picker component is usually used with [Popup](#/en-US/popup) Component.
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Area } from 'vant'; import { Area } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Area } from 'vant'; import { Area } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Badge } from 'vant'; import { Badge } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Badge } from 'vant'; import { Badge } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Button } from 'vant'; import { Button } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Button } from 'vant'; import { Button } from 'vant';

View File

@ -6,6 +6,8 @@ Calendar component for selecting dates or date ranges.
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Calendar } from 'vant'; import { Calendar } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Calendar } from 'vant'; import { Calendar } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Card } from 'vant'; import { Card } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Card } from 'vant'; import { Card } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Cascader } from 'vant'; import { Cascader } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Cascader } from 'vant'; import { Cascader } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Cell, CellGroup } from 'vant'; import { Cell, CellGroup } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Cell, CellGroup } from 'vant'; import { Cell, CellGroup } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Checkbox, CheckboxGroup } from 'vant'; import { Checkbox, CheckboxGroup } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Checkbox, CheckboxGroup } from 'vant'; import { Checkbox, CheckboxGroup } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Circle } from 'vant'; import { Circle } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Circle } from 'vant'; import { Circle } from 'vant';

View File

@ -6,6 +6,8 @@ Quickly and easily create layouts with `van-row` and `van-col`.
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Col, Row } from 'vant'; import { Col, Row } from 'vant';

View File

@ -6,6 +6,8 @@ Layout 提供了 `van-row` 和 `van-col` 两个组件来进行行列布局。
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Col, Row } from 'vant'; import { Col, Row } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Collapse, CollapseItem } from 'vant'; import { Collapse, CollapseItem } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Collapse, CollapseItem } from 'vant'; import { Collapse, CollapseItem } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ContactCard } from 'vant'; import { ContactCard } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ContactCard } from 'vant'; import { ContactCard } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ContactEdit } from 'vant'; import { ContactEdit } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ContactEdit } from 'vant'; import { ContactEdit } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ContactList } from 'vant'; import { ContactList } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ContactList } from 'vant'; import { ContactList } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { CountDown } from 'vant'; import { CountDown } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { CountDown } from 'vant'; import { CountDown } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { CouponCell, CouponList } from 'vant'; import { CouponCell, CouponList } from 'vant';

View File

@ -2,6 +2,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { CouponCell, CouponList } from 'vant'; import { CouponCell, CouponList } from 'vant';

View File

@ -6,6 +6,8 @@ Used to select time, support date and time dimensions, usually used with the [Po
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { DatetimePicker } from 'vant'; import { DatetimePicker } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { DatetimePicker } from 'vant'; import { DatetimePicker } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Dialog } from 'vant'; import { Dialog } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Divider } from 'vant'; import { Divider } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Divider } from 'vant'; import { Divider } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { DropdownMenu, DropdownItem } from 'vant'; import { DropdownMenu, DropdownItem } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { DropdownMenu, DropdownItem } from 'vant'; import { DropdownMenu, DropdownItem } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Empty } from 'vant'; import { Empty } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Empty } from 'vant'; import { Empty } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Field } from 'vant'; import { Field } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Field } from 'vant'; import { Field } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Form } from 'vant'; import { Form } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Form } from 'vant'; import { Form } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Grid, GridItem } from 'vant'; import { Grid, GridItem } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Grid, GridItem } from 'vant'; import { Grid, GridItem } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Icon } from 'vant'; import { Icon } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Icon } from 'vant'; import { Icon } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ImagePreview } from 'vant'; import { ImagePreview } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Image as VanImage } from 'vant'; import { Image as VanImage } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Image as VanImage } from 'vant'; import { Image as VanImage } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { IndexBar } from 'vant'; import { IndexBar } from 'vant';

View File

@ -2,6 +2,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { IndexBar, IndexAnchor } from 'vant'; import { IndexBar, IndexAnchor } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Lazyload } from 'vant'; import { Lazyload } from 'vant';

View File

@ -2,6 +2,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
`Lazyload``Vue` 指令,使用前需要对指令进行注册。 `Lazyload``Vue` 指令,使用前需要对指令进行注册。
```js ```js

View File

@ -6,6 +6,8 @@ A list component to show items and control loading status.
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { List } from 'vant'; import { List } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { List } from 'vant'; import { List } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Loading } from 'vant'; import { Loading } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Loading } from 'vant'; import { Loading } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { NavBar } from 'vant'; import { NavBar } from 'vant';

View File

@ -2,6 +2,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { NavBar } from 'vant'; import { NavBar } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { NoticeBar } from 'vant'; import { NoticeBar } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { NoticeBar } from 'vant'; import { NoticeBar } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Notify } from 'vant'; import { Notify } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { NumberKeyboard } from 'vant'; import { NumberKeyboard } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { NumberKeyboard } from 'vant'; import { NumberKeyboard } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Overlay } from 'vant'; import { Overlay } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Overlay } from 'vant'; import { Overlay } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Pagination } from 'vant'; import { Pagination } from 'vant';

View File

@ -2,6 +2,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Pagination } from 'vant'; import { Pagination } from 'vant';

View File

@ -6,6 +6,8 @@ The PasswordInput component is usually used with [NumberKeyboard](#/en-US/number
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { PasswordInput, NumberKeyboard } from 'vant'; import { PasswordInput, NumberKeyboard } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { PasswordInput, NumberKeyboard } from 'vant'; import { PasswordInput, NumberKeyboard } from 'vant';

View File

@ -6,6 +6,8 @@ The Picker component is usually used with [Popup](#/en-US/popup) Component.
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Picker } from 'vant'; import { Picker } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Picker } from 'vant'; import { Picker } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Popover } from 'vant'; import { Popover } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Popover } from 'vant'; import { Popover } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Popup } from 'vant'; import { Popup } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Popup } from 'vant'; import { Popup } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Progress } from 'vant'; import { Progress } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Progress } from 'vant'; import { Progress } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { PullRefresh } from 'vant'; import { PullRefresh } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { PullRefresh } from 'vant'; import { PullRefresh } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { RadioGroup, Radio } from 'vant'; import { RadioGroup, Radio } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { RadioGroup, Radio } from 'vant'; import { RadioGroup, Radio } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Rate } from 'vant'; import { Rate } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Rate } from 'vant'; import { Rate } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Search } from 'vant'; import { Search } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { Search } from 'vant'; import { Search } from 'vant';

View File

@ -2,6 +2,8 @@
### Install ### Install
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ShareSheet } from 'vant'; import { ShareSheet } from 'vant';

View File

@ -6,6 +6,8 @@
### 引入 ### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js ```js
import { createApp } from 'vue'; import { createApp } from 'vue';
import { ShareSheet } from 'vant'; import { ShareSheet } from 'vant';

Some files were not shown because too many files have changed in this diff Show More