三個(gè)截圖搞定哈
/**
* 自定義jstree types icon
*/
function processTreeTypes() {
var types = {
"root" : {//根節(jié)點(diǎn)
"icon" : "fa fa-users",
},
"root_opened" : {//根節(jié)點(diǎn)打開樣式
"icon" : "fa fa-users",
},
"parent" : {//父節(jié)點(diǎn)
"icon" : "fa fa-users",
},
"parent_opened" : {//父節(jié)點(diǎn)打開樣式
"icon" : "fa fa-users",
},
"node" : {//葉子節(jié)點(diǎn)
"icon" : "fa fa-user",
}
}
return types;
}