三个截图搞定哈
/**
* 自定义jstree types icon
*/
function processTreeTypes() {
var types = {
"root" : {//根节点
"icon" : "fa fa-users",
},
"root_opened" : {//根节点打开样式
"icon" : "fa fa-users",
},
"parent" : {//父节点
"icon" : "fa fa-users",
},
"parent_opened" : {//父节点打开样式
"icon" : "fa fa-users",
},
"node" : {//叶子节点
"icon" : "fa fa-user",
}
}
return types;
}