docs: add import when using Toast or Notify

This commit is contained in:
陈嘉涵
2020-01-18 08:25:24 +08:00
parent 78e4c153b1
commit 9bcfddc958
68 changed files with 206 additions and 149 deletions
+4 -3
View File
@@ -17,7 +17,7 @@ Vue.use(Stepper);
<van-stepper v-model="value" />
```
```javascript
```js
export default {
data() {
return {
@@ -79,14 +79,15 @@ export default {
/>
```
```javascript
```js
import { Toast } from 'vant';
export default {
data() {
return {
value: 1
}
},
methods: {
onChange(value) {
Toast.loading({ forbidClick: true });
+4 -3
View File
@@ -23,7 +23,7 @@ Vue.use(Stepper);
<van-stepper v-model="value" />
```
```javascript
```js
export default {
data() {
return {
@@ -101,14 +101,15 @@ export default {
/>
```
```javascript
```js
import { Toast } from 'vant';
export default {
data() {
return {
value: 1
}
},
methods: {
onChange(value) {
Toast.loading({ forbidClick: true });