没有人气啊,是太低级了不屑回答吗,我对照网上别人的例子看了看,自问自答好了
是这样的
在"title": "首页",这级目录里面,后面加上,xtype: 'treepanel',将他定义为一棵树,
在"children:{}"外面,需要包裹一个root,也就是{
"tree": [{
"title": "首页",
"xtype": 'treepanel'"permission": "111",
"root": {
"children": [{
"title": "normal",
"link": "notice",
"count": "noti_count",
"permission": "111",
"icon": "home_icon"
},
{
"title": "messages",
"link": "messages",
"permission": "111",
"icon": "message_icon"
},
{
"title": "contacts",
"link": "contacts",
"permission": "111",
"icon": "contact_icon"
}]
}
}
}
是这样的
在"title": "首页",这级目录里面,后面加上,xtype: 'treepanel',将他定义为一棵树,
在"children:{}"外面,需要包裹一个root,也就是{
"tree": [{
"title": "首页",
"xtype": 'treepanel'"permission": "111",
"root": {
"children": [{
"title": "normal",
"link": "notice",
"count": "noti_count",
"permission": "111",
"icon": "home_icon"
},
{
"title": "messages",
"link": "messages",
"permission": "111",
"icon": "message_icon"
},
{
"title": "contacts",
"link": "contacts",
"permission": "111",
"icon": "contact_icon"
}]
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货