Home > front end >  The front-end tree form dynamic loading
The front-end tree form dynamic loading

Time:09-25


Is a component of yamauchi bosses, in performing a callback when clicking on the icon, sending ajax requests in the callback, with the parent id, access to information corresponding to the street, but the data in the statement of the field, for example, I var data=https://bbs.csdn.net/topics/data after the request is successful, put the data into add child nodes method won't show
I don't know that enough clear, anyway now stuck in here, don't know how to make change, want to have a great god made similar functions to help, or any other way can recommend, thank you!!!!

CodePudding user response:

I directly nested a child component child component is a separate page
Don't know demand in the same way as you are

CodePudding user response:

reference 1 floor console. The log () response:
I nested directly a child component child component is a separate page
Don't know the requirements in the same way as you not


reference 1 floor console. The log () response:
I nested directly a child component child component is a separate page
Don't know the requirements in the same way as you not

Is not the page, child components is a separate component

CodePudding user response:

The
reference 2 floor console. The log () response:
Quote: reference 1 floor console. The log () response:

I directly nested a child component child component is a separate page
Don't know the requirements in the same way as you not


reference 1 floor console. The log () response:
I nested directly a child component child component is a separate page
Don't know the requirements in the same way as you not

Is not the page, child components is a single component

What do you mean click on the icon after a bullet box, with tree form to display the corresponding information street?

CodePudding user response:

reference weixin_44973437 reply: 3/f
Quote: refer to the second floor console. The log () response:

The
Quote: reference 1 floor console. The log () response:

I directly nested a child component child component is a separate page
Don't know the requirements in the same way as you not


reference 1 floor console. The log () response:
I nested directly a child component child component is a separate page
Don't know the requirements in the same way as you not

Is not the page, child components is a single component

What do you mean click on the icon after a bullet box, with tree form to display the corresponding information street?

Not or deployment but content written in the book of another component

CodePudding user response:

You are using someone else's component you can write a ah

CodePudding user response:

reference 5 floor console. The log () response:
you are using someone else's component you can write a

Also can't write, tree form was directly to get all the data directly show, the first do not familiar with, you write on another component is how to implement a code can under reference

CodePudding user response:

 
Render: (h, params)=& gt; {
Return this. $createElement method (expandRow, {
Ref: 'child',
Props: {
Row: params. Row
}
})
}

ExpandRow subcomponents
  • Related