<el
‐
tree
:data
=
"
data
"
show
‐
checkbox
node
‐
key
=
"
id
"
default
‐
expand
‐
all
:expand
‐
on
‐
click
‐
node
=
"
false
"
:render
‐
content
=
"
renderContent
"
>
</el
‐
tree>
let id
= 1000;
export default {
data() {
return {
data : [{
id: 1,
label:
'一
级 1
'
,
children: [{
id: 4,
label:
'
二级 1
‐
1
'
,
children: [{
id: 9,
label:
'
三级 1
‐
1
‐
1
'
}, {
id: 10,
label:
'
三级 1
‐
1
‐
2
'
}]
}]
}]
}
}
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |