[Doc] update install guide (#4083)

This commit is contained in:
neverland 2019-08-10 11:11:10 +08:00 committed by GitHub
parent 8aaffc807b
commit cf92bb122a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
122 changed files with 144 additions and 4 deletions

View File

@ -105,8 +105,8 @@ Vue.use(Vant);
var Vue = window.Vue;
var vant = window.vant;
// Register components
Vue.use(vant);
// Register Lazyload component
Vue.use(vant.Lazyload);
// Call function components
vant.Toast('message');

View File

@ -120,8 +120,8 @@ Vue.use(Vant);
var Vue = window.Vue;
var vant = window.vant;
// 注册组件
Vue.use(vant);
// 注册 Lazyload 组件
Vue.use(vant.Lazyload);
// 调用函数式组件
vant.Toast('提示');

View File

@ -1,7 +1,9 @@
# ActionSheet
### Install
``` javascript
import Vue from 'vue';
import { ActionSheet } from 'vant';
Vue.use(ActionSheet);

View File

@ -1,7 +1,9 @@
# ActionSheet 上拉菜单
### 引入
``` javascript
import Vue from 'vue';
import { ActionSheet } from 'vant';
Vue.use(ActionSheet);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { AddressEdit } from 'vant';
Vue.use(AddressEdit);

View File

@ -1,7 +1,9 @@
# AddressEdit 地址编辑
### 引入
``` javascript
import Vue from 'vue';
import { AddressEdit } from 'vant';
Vue.use(AddressEdit);

View File

@ -1,7 +1,9 @@
# AddressList
### Install
``` javascript
import Vue from 'vue';
import { AddressList } from 'vant';
Vue.use(AddressList);

View File

@ -1,7 +1,9 @@
# AddressList 地址列表
### 引入
``` javascript
import Vue from 'vue';
import { AddressList } from 'vant';
Vue.use(AddressList);

View File

@ -7,6 +7,7 @@ The Picker component is usually used with [Popup](#/en-US/popup) Component.
### Install
``` javascript
import Vue from 'vue';
import { Area } from 'vant';
Vue.use(Area);

View File

@ -7,6 +7,7 @@
### 引入
```javascript
import Vue from 'vue';
import { Area } from 'vant';
Vue.use(Area);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Button } from 'vant';
Vue.use(Button);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Button } from 'vant';
Vue.use(Button);

View File

@ -1,7 +1,9 @@
# Card
### Install
``` javascript
import Vue from 'vue';
import { Card } from 'vant';
Vue.use(Card);

View File

@ -1,7 +1,9 @@
# Card 卡片
### 引入
``` javascript
import Vue from 'vue';
import { Card } from 'vant';
Vue.use(Card);

View File

@ -1,7 +1,9 @@
# Cell
### Install
``` javascript
import Vue from 'vue';
import { Cell, CellGroup } from 'vant';
Vue.use(Cell).use(CellGroup);

View File

@ -1,7 +1,9 @@
# Cell 单元格
### 引入
``` javascript
import Vue from 'vue';
import { Cell, CellGroup } from 'vant';
Vue.use(Cell).use(CellGroup);

View File

@ -1,7 +1,9 @@
# Checkbox
### Install
``` javascript
import Vue from 'vue';
import { Checkbox, CheckboxGroup } from 'vant';
Vue.use(Checkbox).use(CheckboxGroup);

View File

@ -1,7 +1,9 @@
# Checkbox 复选框
### 引入
``` javascript
import Vue from 'vue';
import { Checkbox, CheckboxGroup } from 'vant';
Vue.use(Checkbox).use(CheckboxGroup);

View File

@ -1,7 +1,9 @@
# Circle
### Install
``` javascript
import Vue from 'vue';
import { Circle } from 'vant';
Vue.use(Circle);

View File

@ -1,7 +1,9 @@
# Circle 环形进度条
### 引入
``` javascript
import Vue from 'vue';
import { Circle } from 'vant';
Vue.use(Circle);

View File

@ -7,6 +7,7 @@ Quickly and easily create layouts with `van-row` and `van-col`
### Install
``` javascript
import Vue from 'vue';
import { Row, Col } from 'vant';
Vue.use(Row).use(Col);

View File

@ -7,6 +7,7 @@ Layout 提供了`van-row`和`van-col`两个组件来进行行列布局
### 引入
``` javascript
import Vue from 'vue';
import { Row, Col } from 'vant';
Vue.use(Row).use(Col);

View File

@ -1,7 +1,9 @@
# Collapse
### Install
``` javascript
import Vue from 'vue';
import { Collapse, CollapseItem } from 'vant';
Vue.use(Collapse).use(CollapseItem);

View File

@ -1,7 +1,9 @@
# Collapse 折叠面板
### 引入
``` javascript
import Vue from 'vue';
import { Collapse, CollapseItem } from 'vant';
Vue.use(Collapse).use(CollapseItem);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { ContactCard, ContactList, ContactEdit } from 'vant';
Vue

View File

@ -7,6 +7,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { ContactCard, ContactList, ContactEdit } from 'vant';
Vue

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { CountDown } from 'vant';
Vue.use(CountDown);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { CountDown } from 'vant';
Vue.use(CountDown);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { CouponCell, CouponList } from 'vant';
Vue.use(CouponCell).use(CouponList);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { CouponCell, CouponList } from 'vant';
Vue.use(CouponCell).use(CouponList);

View File

@ -5,7 +5,9 @@
The DatetimePicker component is usually used with [Popup](#/en-US/popup) Component.
### Install
``` javascript
import Vue from 'vue';
import { DatetimePicker } from 'vant';
Vue.use(DatetimePicker);

View File

@ -7,6 +7,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { DatetimePicker } from 'vant';
Vue.use(DatetimePicker);

View File

@ -3,6 +3,7 @@
### Install
```js
import Vue from 'vue';
import { Dialog } from 'vant';
Vue.use(Dialog);

View File

@ -21,6 +21,7 @@ Dialog({ message: '提示' });
通过组件调用 Dialog 时,可以通过下面的方式进行注册
```js
import Vue from 'vue';
import { Dialog } from 'vant';
// 全局注册

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Divider } from 'vant';
Vue.use(Divider);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Divider } from 'vant';
Vue.use(Divider);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { DropdownMenu, DropdownItem } from 'vant';
Vue.use(DropdownMenu).use(DropdownItem);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { DropdownMenu, DropdownItem } from 'vant';
Vue.use(DropdownMenu).use(DropdownItem);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Field } from 'vant';
Vue.use(Field);

View File

@ -5,7 +5,9 @@
表单中的输入框组件,支持`input``textarea`两种类型
### 引入
``` javascript
import Vue from 'vue';
import { Field } from 'vant';
Vue.use(Field);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import {
GoodsAction,
GoodsActionButton,

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import {
GoodsAction,
GoodsActionIcon,

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Grid, GridItem } from 'vant';
Vue.use(Grid).use(GridItem);

View File

@ -7,6 +7,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Grid, GridItem } from 'vant';
Vue.use(Grid).use(GridItem);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Icon } from 'vant';
Vue.use(Icon);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Icon } from 'vant';
Vue.use(Icon);

View File

@ -3,6 +3,7 @@
### Install
```js
import Vue from 'vue';
import { ImagePreview } from 'vant';
Vue.use(ImagePreview);

View File

@ -5,6 +5,7 @@
`ImagePreview`和其他组件不同不是通过HTML结构的方式来使用而是通过函数调用的方式。使用前需要先引入它。
```js
import Vue from 'vue';
import { ImagePreview } from 'vant';
Vue.use(ImagePreview);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Image } from 'vant';
Vue.use(Image);

View File

@ -7,6 +7,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Image } from 'vant';
Vue.use(Image);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { IndexBar } from 'vant';
Vue.use(IndexBar);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { IndexBar, IndexAnchor } from 'vant';
Vue.use(IndexBar).use(IndexAnchor);

View File

@ -7,6 +7,7 @@ A list component to show items and control loading status.
### Install
``` javascript
import Vue from 'vue';
import { List } from 'vant';
Vue.use(List);

View File

@ -7,6 +7,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { List } from 'vant';
Vue.use(List);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Loading } from 'vant';
Vue.use(Loading);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Loading } from 'vant';
Vue.use(Loading);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { NavBar } from 'vant';
Vue.use(NavBar);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { NavBar } from 'vant';
Vue.use(NavBar);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { NoticeBar } from 'vant';
Vue.use(NoticeBar);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { NoticeBar } from 'vant';
Vue.use(NoticeBar);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Notify } from 'vant';
Vue.use(Notify);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Notify } from 'vant';
Vue.use(Notify);

View File

@ -1,7 +1,9 @@
# NumberKeyboard
### Install
``` javascript
import Vue from 'vue';
import { NumberKeyboard } from 'vant';
Vue.use(NumberKeyboard);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { NumberKeyboard } from 'vant';
Vue.use(NumberKeyboard);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Overlay } from 'vant';
Vue.use(Overlay);

View File

@ -7,6 +7,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Overlay } from 'vant';
Vue.use(Overlay);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Pagination } from 'vant';
Vue.use(Pagination);

View File

@ -4,6 +4,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Pagination } from 'vant';
Vue.use(Pagination);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Panel } from 'vant';
Vue.use(Panel);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Panel } from 'vant';
Vue.use(Panel);

View File

@ -7,6 +7,7 @@ The PasswordInput component is usually used with [NumberKeyboard](#/en-US/number
### Install
``` javascript
import Vue from 'vue';
import { PasswordInput, NumberKeyboard } from 'vant';
Vue.use(PasswordInput).use(NumberKeyboard);

View File

@ -5,7 +5,9 @@
密码输入框组件通常与 [数字键盘](#/zh-CN/number-keyboard) 组件配合使用
### 引入
``` javascript
import Vue from 'vue';
import { PasswordInput, NumberKeyboard } from 'vant';
Vue.use(PasswordInput).use(NumberKeyboard);

View File

@ -7,6 +7,7 @@ The Picker component is usually used with [Popup](#/en-US/popup) Component.
### Install
``` javascript
import Vue from 'vue';
import { Picker } from 'vant';
Vue.use(Picker);

View File

@ -7,6 +7,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Picker } from 'vant';
Vue.use(Picker);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Popup } from 'vant';
Vue.use(Popup);

View File

@ -7,6 +7,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Popup } from 'vant';
Vue.use(Popup);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Progress } from 'vant';
Vue.use(Progress);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Progress } from 'vant';
Vue.use(Progress);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { PullRefresh } from 'vant';
Vue.use(PullRefresh);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { PullRefresh } from 'vant';
Vue.use(PullRefresh);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { RadioGroup, Radio } from 'vant';
Vue.use(RadioGroup);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { RadioGroup, Radio } from 'vant';
Vue.use(RadioGroup);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Rate } from 'vant';
Vue.use(Rate);

View File

@ -1,7 +1,9 @@
# Rate 评分
### 引入
``` javascript
import Vue from 'vue';
import { Rate } from 'vant';
Vue.use(Rate);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Search } from 'vant';
Vue.use(Search);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Search } from 'vant';
Vue.use(Search);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Sidebar, SidebarItem } from 'vant';
Vue.use(Sidebar);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Sidebar, SidebarItem } from 'vant';
Vue.use(Sidebar);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Skeleton } from 'vant';
Vue.use(Skeleton);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Skeleton } from 'vant';
Vue.use(Skeleton);

View File

@ -3,6 +3,7 @@
### Install
```javascript
import Vue from 'vue';
import { Sku } from 'vant';
Vue.use(Sku);

View File

@ -3,6 +3,7 @@
### 引入
```javascript
import Vue from 'vue';
import { Sku } from 'vant';
Vue.use(Sku);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Slider } from 'vant';
Vue.use(Slider);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Slider } from 'vant';
Vue.use(Slider);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Stepper } from 'vant';
Vue.use(Stepper);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Stepper } from 'vant';
Vue.use(Stepper);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Step, Steps } from 'vant';
Vue.use(Step).use(Steps);

View File

@ -3,6 +3,7 @@
### 引入
``` javascript
import Vue from 'vue';
import { Step, Steps } from 'vant';
Vue.use(Step).use(Steps);

View File

@ -3,6 +3,7 @@
### Install
``` javascript
import Vue from 'vue';
import { Sticky } from 'vant';
Vue.use(Sticky);

View File

@ -7,6 +7,7 @@ Sticky 组件与 CSS 中`position: sticky`属性实现的效果一致,当组
### 引入
``` javascript
import Vue from 'vue';
import { Sticky } from 'vant';
Vue.use(Sticky);

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