tree在json文件中有一个expanded属性,修改tree树的展开折叠情况。(默认折叠)
如部分代码:
{
"icon": "※",
"name": "增删改查",
"expanded": true,
"children": [{
"icon": "※",
"name": "人员管理"
}] }复制代码
此节点保持展开状态
tree在json文件中有一个expanded属性,修改tree树的展开折叠情况。(默认折叠)
如部分代码:
{
"icon": "※",
"name": "增删改查",
"expanded": true,
"children": [{
"icon": "※",
"name": "人员管理"
}] }复制代码
此节点保持展开状态
转载于:https://juejin.im/post/5c99cc5ce51d455a1b5f8451