docs: update component registration guide

This commit is contained in:
chenjiahan
2020-08-20 23:32:07 +08:00
parent 9a86e9e6ca
commit d42b1b43c3
124 changed files with 450 additions and 303 deletions
+9 -3
View File
@@ -3,10 +3,11 @@
### Install
```js
import Vue from 'vue';
import { createApp } from 'vue';
import { Circle } from 'vant';
Vue.use(Circle);
const app = createApp();
app.use(Circle);
```
## Usage
@@ -14,7 +15,12 @@ Vue.use(Circle);
### Basic Usage
```html
<van-circle v-model:currentRate="currentRate" :rate="30" :speed="100" :text="text" />
<van-circle
v-model:currentRate="currentRate"
:rate="30"
:speed="100"
:text="text"
/>
```
```js
+3 -2
View File
@@ -3,10 +3,11 @@
### 引入
```js
import Vue from 'vue';
import { createApp } from 'vue';
import { Circle } from 'vant';
Vue.use(Circle);
const app = createApp();
app.use(Circle);
```
## 代码演示