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();
|
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);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
### 引入
|
### 引入
|
||||||
|
|
||||||
|
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||||
|
|
||||||
`Lazyload` 是 `Vue` 指令,使用前需要对指令进行注册。
|
`Lazyload` 是 `Vue` 指令,使用前需要对指令进行注册。
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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
Loading…
x
Reference in New Issue
Block a user