mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] update install guide (#4083)
This commit is contained in:
parent
8aaffc807b
commit
cf92bb122a
@ -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');
|
||||
|
@ -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('提示');
|
||||
|
@ -1,7 +1,9 @@
|
||||
# ActionSheet
|
||||
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { ActionSheet } from 'vant';
|
||||
|
||||
Vue.use(ActionSheet);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# ActionSheet 上拉菜单
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { ActionSheet } from 'vant';
|
||||
|
||||
Vue.use(ActionSheet);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { AddressEdit } from 'vant';
|
||||
|
||||
Vue.use(AddressEdit);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# AddressEdit 地址编辑
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { AddressEdit } from 'vant';
|
||||
|
||||
Vue.use(AddressEdit);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# AddressList
|
||||
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { AddressList } from 'vant';
|
||||
|
||||
Vue.use(AddressList);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# AddressList 地址列表
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { AddressList } from 'vant';
|
||||
|
||||
Vue.use(AddressList);
|
||||
|
@ -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);
|
||||
|
@ -7,6 +7,7 @@
|
||||
### 引入
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue';
|
||||
import { Area } from 'vant';
|
||||
|
||||
Vue.use(Area);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Button } from 'vant';
|
||||
|
||||
Vue.use(Button);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Button } from 'vant';
|
||||
|
||||
Vue.use(Button);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# Card
|
||||
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Card } from 'vant';
|
||||
|
||||
Vue.use(Card);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# Card 卡片
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Card } from 'vant';
|
||||
|
||||
Vue.use(Card);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# Cell
|
||||
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Cell, CellGroup } from 'vant';
|
||||
|
||||
Vue.use(Cell).use(CellGroup);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# Cell 单元格
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Cell, CellGroup } from 'vant';
|
||||
|
||||
Vue.use(Cell).use(CellGroup);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# Checkbox
|
||||
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Checkbox, CheckboxGroup } from 'vant';
|
||||
|
||||
Vue.use(Checkbox).use(CheckboxGroup);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# Checkbox 复选框
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Checkbox, CheckboxGroup } from 'vant';
|
||||
|
||||
Vue.use(Checkbox).use(CheckboxGroup);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# Circle
|
||||
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Circle } from 'vant';
|
||||
|
||||
Vue.use(Circle);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# Circle 环形进度条
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Circle } from 'vant';
|
||||
|
||||
Vue.use(Circle);
|
||||
|
@ -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);
|
||||
|
@ -7,6 +7,7 @@ Layout 提供了`van-row`和`van-col`两个组件来进行行列布局
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Row, Col } from 'vant';
|
||||
|
||||
Vue.use(Row).use(Col);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# Collapse
|
||||
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Collapse, CollapseItem } from 'vant';
|
||||
|
||||
Vue.use(Collapse).use(CollapseItem);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# Collapse 折叠面板
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Collapse, CollapseItem } from 'vant';
|
||||
|
||||
Vue.use(Collapse).use(CollapseItem);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { ContactCard, ContactList, ContactEdit } from 'vant';
|
||||
|
||||
Vue
|
||||
|
@ -7,6 +7,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { ContactCard, ContactList, ContactEdit } from 'vant';
|
||||
|
||||
Vue
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { CountDown } from 'vant';
|
||||
|
||||
Vue.use(CountDown);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { CountDown } from 'vant';
|
||||
|
||||
Vue.use(CountDown);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { CouponCell, CouponList } from 'vant';
|
||||
|
||||
Vue.use(CouponCell).use(CouponList);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { CouponCell, CouponList } from 'vant';
|
||||
|
||||
Vue.use(CouponCell).use(CouponList);
|
||||
|
@ -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);
|
||||
|
@ -7,6 +7,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { DatetimePicker } from 'vant';
|
||||
|
||||
Vue.use(DatetimePicker);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import { Dialog } from 'vant';
|
||||
|
||||
Vue.use(Dialog);
|
||||
|
@ -21,6 +21,7 @@ Dialog({ message: '提示' });
|
||||
通过组件调用 Dialog 时,可以通过下面的方式进行注册
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import { Dialog } from 'vant';
|
||||
|
||||
// 全局注册
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Divider } from 'vant';
|
||||
|
||||
Vue.use(Divider);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Divider } from 'vant';
|
||||
|
||||
Vue.use(Divider);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { DropdownMenu, DropdownItem } from 'vant';
|
||||
|
||||
Vue.use(DropdownMenu).use(DropdownItem);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { DropdownMenu, DropdownItem } from 'vant';
|
||||
|
||||
Vue.use(DropdownMenu).use(DropdownItem);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Field } from 'vant';
|
||||
|
||||
Vue.use(Field);
|
||||
|
@ -5,7 +5,9 @@
|
||||
表单中的输入框组件,支持`input`和`textarea`两种类型
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Field } from 'vant';
|
||||
|
||||
Vue.use(Field);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import {
|
||||
GoodsAction,
|
||||
GoodsActionButton,
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import {
|
||||
GoodsAction,
|
||||
GoodsActionIcon,
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Grid, GridItem } from 'vant';
|
||||
|
||||
Vue.use(Grid).use(GridItem);
|
||||
|
@ -7,6 +7,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Grid, GridItem } from 'vant';
|
||||
|
||||
Vue.use(Grid).use(GridItem);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Icon } from 'vant';
|
||||
|
||||
Vue.use(Icon);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Icon } from 'vant';
|
||||
|
||||
Vue.use(Icon);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import { ImagePreview } from 'vant';
|
||||
|
||||
Vue.use(ImagePreview);
|
||||
|
@ -5,6 +5,7 @@
|
||||
`ImagePreview`和其他组件不同,不是通过HTML结构的方式来使用,而是通过函数调用的方式。使用前需要先引入它。
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import { ImagePreview } from 'vant';
|
||||
|
||||
Vue.use(ImagePreview);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Image } from 'vant';
|
||||
|
||||
Vue.use(Image);
|
||||
|
@ -7,6 +7,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Image } from 'vant';
|
||||
|
||||
Vue.use(Image);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { IndexBar } from 'vant';
|
||||
|
||||
Vue.use(IndexBar);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { IndexBar, IndexAnchor } from 'vant';
|
||||
|
||||
Vue.use(IndexBar).use(IndexAnchor);
|
||||
|
@ -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);
|
||||
|
@ -7,6 +7,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { List } from 'vant';
|
||||
|
||||
Vue.use(List);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Loading } from 'vant';
|
||||
|
||||
Vue.use(Loading);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Loading } from 'vant';
|
||||
|
||||
Vue.use(Loading);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { NavBar } from 'vant';
|
||||
|
||||
Vue.use(NavBar);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { NavBar } from 'vant';
|
||||
|
||||
Vue.use(NavBar);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { NoticeBar } from 'vant';
|
||||
|
||||
Vue.use(NoticeBar);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { NoticeBar } from 'vant';
|
||||
|
||||
Vue.use(NoticeBar);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Notify } from 'vant';
|
||||
|
||||
Vue.use(Notify);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Notify } from 'vant';
|
||||
|
||||
Vue.use(Notify);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# NumberKeyboard
|
||||
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { NumberKeyboard } from 'vant';
|
||||
|
||||
Vue.use(NumberKeyboard);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { NumberKeyboard } from 'vant';
|
||||
|
||||
Vue.use(NumberKeyboard);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Overlay } from 'vant';
|
||||
|
||||
Vue.use(Overlay);
|
||||
|
@ -7,6 +7,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Overlay } from 'vant';
|
||||
|
||||
Vue.use(Overlay);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Pagination } from 'vant';
|
||||
|
||||
Vue.use(Pagination);
|
||||
|
@ -4,6 +4,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Pagination } from 'vant';
|
||||
|
||||
Vue.use(Pagination);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Panel } from 'vant';
|
||||
|
||||
Vue.use(Panel);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Panel } from 'vant';
|
||||
|
||||
Vue.use(Panel);
|
||||
|
@ -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);
|
||||
|
@ -5,7 +5,9 @@
|
||||
密码输入框组件通常与 [数字键盘](#/zh-CN/number-keyboard) 组件配合使用
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { PasswordInput, NumberKeyboard } from 'vant';
|
||||
|
||||
Vue.use(PasswordInput).use(NumberKeyboard);
|
||||
|
@ -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);
|
||||
|
@ -7,6 +7,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Picker } from 'vant';
|
||||
|
||||
Vue.use(Picker);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Popup } from 'vant';
|
||||
|
||||
Vue.use(Popup);
|
||||
|
@ -7,6 +7,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Popup } from 'vant';
|
||||
|
||||
Vue.use(Popup);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Progress } from 'vant';
|
||||
|
||||
Vue.use(Progress);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Progress } from 'vant';
|
||||
|
||||
Vue.use(Progress);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { PullRefresh } from 'vant';
|
||||
|
||||
Vue.use(PullRefresh);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { PullRefresh } from 'vant';
|
||||
|
||||
Vue.use(PullRefresh);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { RadioGroup, Radio } from 'vant';
|
||||
|
||||
Vue.use(RadioGroup);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { RadioGroup, Radio } from 'vant';
|
||||
|
||||
Vue.use(RadioGroup);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Rate } from 'vant';
|
||||
|
||||
Vue.use(Rate);
|
||||
|
@ -1,7 +1,9 @@
|
||||
# Rate 评分
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Rate } from 'vant';
|
||||
|
||||
Vue.use(Rate);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Search } from 'vant';
|
||||
|
||||
Vue.use(Search);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Search } from 'vant';
|
||||
|
||||
Vue.use(Search);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Sidebar, SidebarItem } from 'vant';
|
||||
|
||||
Vue.use(Sidebar);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Sidebar, SidebarItem } from 'vant';
|
||||
|
||||
Vue.use(Sidebar);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Skeleton } from 'vant';
|
||||
|
||||
Vue.use(Skeleton);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Skeleton } from 'vant';
|
||||
|
||||
Vue.use(Skeleton);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue';
|
||||
import { Sku } from 'vant';
|
||||
|
||||
Vue.use(Sku);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue';
|
||||
import { Sku } from 'vant';
|
||||
|
||||
Vue.use(Sku);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Slider } from 'vant';
|
||||
|
||||
Vue.use(Slider);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Slider } from 'vant';
|
||||
|
||||
Vue.use(Slider);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Stepper } from 'vant';
|
||||
|
||||
Vue.use(Stepper);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Stepper } from 'vant';
|
||||
|
||||
Vue.use(Stepper);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Step, Steps } from 'vant';
|
||||
|
||||
Vue.use(Step).use(Steps);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Step, Steps } from 'vant';
|
||||
|
||||
Vue.use(Step).use(Steps);
|
||||
|
@ -3,6 +3,7 @@
|
||||
### Install
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { Sticky } from 'vant';
|
||||
|
||||
Vue.use(Sticky);
|
||||
|
@ -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
Loading…
x
Reference in New Issue
Block a user