mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: add component registration link (#8378)
This commit is contained in:
parent
8643ffdb8d
commit
f7706fb179
@ -21,11 +21,11 @@ import { createApp } from 'vue';
|
||||
const app = createApp();
|
||||
|
||||
// 方式一. 通过 app.use 注册
|
||||
// 注册完成后,在模板中通过 VanButton 或 van-button 标签均可使用按钮组件
|
||||
// 注册完成后,在模板中通过 <van-button> 或 <VanButton> 标签来使用按钮组件
|
||||
app.use(Button);
|
||||
|
||||
// 方式二. 通过 app.component 注册
|
||||
// 注册完成后,在模板中通过 van-button 标签即可使用按钮组件
|
||||
// 注册完成后,在模板中通过 <van-button> 标签来使用按钮组件
|
||||
app.component(Button.name, Button);
|
||||
```
|
||||
|
||||
|
@ -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';
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { ActionBar, ActionBarIcon, ActionBarButton } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { ActionSheet } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { AddressEdit } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { AddressList } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Area } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Badge } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Button } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Calendar } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Card } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Cascader } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Cell, CellGroup } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Checkbox, CheckboxGroup } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Circle } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Collapse, CollapseItem } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { ContactCard } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { ContactEdit } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { ContactList } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { CountDown } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { CouponCell, CouponList } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { DatetimePicker } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Divider } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { DropdownMenu, DropdownItem } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Empty } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Field } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Form } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Grid, GridItem } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Icon } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Image as VanImage } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { IndexBar, IndexAnchor } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
`Lazyload` 是 `Vue` 指令,使用前需要对指令进行注册。
|
||||
|
||||
```js
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { List } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Loading } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { NavBar } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { NoticeBar } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { NumberKeyboard } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Overlay } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Pagination } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { PasswordInput, NumberKeyboard } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Picker } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Popover } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Popup } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Progress } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { PullRefresh } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { RadioGroup, Radio } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Rate } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Search } from 'vant';
|
||||
|
@ -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';
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { ShareSheet } from 'vant';
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user