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
+5 -3
View File
@@ -23,7 +23,7 @@ Vue.use(TabbarItem);
</van-tabbar>
```
```javascript
```js
export default {
data() {
return {
@@ -44,7 +44,7 @@ export default {
</van-tabbar>
```
```javascript
```js
export default {
data() {
return {
@@ -84,7 +84,7 @@ Use `icon` slot to custom icon
</van-tabbar>
```
```javascript
```js
export default {
data() {
return {
@@ -126,6 +126,8 @@ export default {
```
```js
import { Notify } from 'vant';
export default {
methods: {
onChange(index) {
+5 -3
View File
@@ -25,7 +25,7 @@ Vue.use(TabbarItem);
</van-tabbar>
```
```javascript
```js
export default {
data() {
return {
@@ -48,7 +48,7 @@ export default {
</van-tabbar>
```
```javascript
```js
export default {
data() {
return {
@@ -90,7 +90,7 @@ export default {
</van-tabbar>
```
```javascript
```js
export default {
data() {
return {
@@ -131,6 +131,8 @@ export default {
```
```js
import { Notify } from 'vant';
export default {
methods: {
onChange(index) {