docs: add import when using Toast or Notify
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
[
|
||||
{
|
||||
// 导航名称
|
||||
|
||||
Reference in New Issue
Block a user