mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] update README.md
This commit is contained in:
parent
c912afdf52
commit
e3d5c5517e
@ -38,11 +38,7 @@
|
||||
## Install
|
||||
|
||||
```bash
|
||||
# install 1.x stable
|
||||
npm i vant -S
|
||||
|
||||
# install 2.0 beta
|
||||
npm i vant@beta -S
|
||||
```
|
||||
|
||||
## Quickstart
|
||||
|
@ -37,11 +37,7 @@
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
# 安装 1.x 稳定版本
|
||||
npm i vant -S
|
||||
|
||||
# 安装 2.0 测试版本
|
||||
npm i vant@beta -S
|
||||
```
|
||||
|
||||
## 快速上手
|
||||
|
@ -22,11 +22,7 @@ In the GUI, click on 'Dependencies' -> `Install Dependencies` and add `vant` to
|
||||
### Install
|
||||
|
||||
```bash
|
||||
# install 1.x stable
|
||||
npm i vant -S
|
||||
|
||||
# install 2.0 beta
|
||||
npm i vant@beta -S
|
||||
```
|
||||
|
||||
## Usage
|
||||
@ -95,11 +91,11 @@ Vue.use(Vant);
|
||||
|
||||
```html
|
||||
<!-- import style -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@beta/lib/index.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.0/lib/index.css" />
|
||||
|
||||
<!-- import script -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/vant@beta/lib/vant.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/vant@2.0/lib/vant.min.js"></script>
|
||||
|
||||
<script>
|
||||
var Vue = window.Vue;
|
||||
|
@ -31,11 +31,7 @@ vue ui
|
||||
### 安装
|
||||
|
||||
```bash
|
||||
# 安装 1.x 稳定版本
|
||||
npm i vant -S
|
||||
|
||||
# 安装 2.0 测试版本
|
||||
npm i vant@beta -S
|
||||
```
|
||||
|
||||
## 引入组件
|
||||
@ -109,11 +105,11 @@ Vue.use(Vant);
|
||||
|
||||
```html
|
||||
<!-- 引入样式 -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@beta/lib/index.css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.0/lib/index.css">
|
||||
|
||||
<!-- 引入组件 -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/vant@beta/lib/vant.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/vant@2.0/lib/vant.min.js"></script>
|
||||
|
||||
<script>
|
||||
var Vue = window.Vue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user