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
+3 -3
View File
@@ -21,7 +21,7 @@ Vue.use(TreeSelect);
/>
```
```javascript
```js
export default {
data() {
return {
@@ -43,7 +43,7 @@ export default {
/>
```
```javascript
```js
export default {
data() {
return {
@@ -136,7 +136,7 @@ export default {
In every tree object, `text` property defines `id` stands for the unique key while the `children` contains sub-tree objects.
```javascript
```js
[
{
// name of the parent node
+3 -3
View File
@@ -23,7 +23,7 @@ Vue.use(TreeSelect);
/>
```
```javascript
```js
export default {
data() {
return {
@@ -47,7 +47,7 @@ export default {
/>
```
```javascript
```js
export default {
data() {
return {
@@ -142,7 +142,7 @@ export default {
`items` 整体为一个数组,数组内包含一系列描述分类的对象,每个分类里,`text`表示当前分类的名称,`children`表示分类里的可选项。
```javascript
```js
[
{
// 导航名称