* Adjust code .
This commit is contained in:
@@ -20,7 +20,8 @@ $(function()
|
||||
var imgObj = {
|
||||
'annex': 'annex',
|
||||
'lib': 'wiki-file-lib',
|
||||
'api': 'interface'
|
||||
'api': 'interface',
|
||||
'execution': 'wiki-file-lib',
|
||||
}
|
||||
|
||||
function initTree(ele, treeData)
|
||||
@@ -37,7 +38,7 @@ $(function()
|
||||
var $item = '<a href="' + link + '" style="position: relative" data-has-children="' + hasChild + '" title="' + item.name + '" data-id="' + item.id + '" class="' + libClass + '" data-type="' + item.type + '" data-action="' + item.hasAction + '">';
|
||||
|
||||
$item += '<div class="text h-full w-full flex-start overflow-hidden">';
|
||||
if(libClass == 'lib' && item.type != 'execution') $item += '<div class="img-lib" style="background-image:url(static/svg/' + imgObj[item.type || 'lib'] + '.svg)"></div>';
|
||||
if(libClass == 'lib') $item += '<div class="img-lib" style="background-image:url(static/svg/' + imgObj[item.type || 'lib'] + '.svg)"></div>';
|
||||
$item += '<span style="padding-left: 5px;">';
|
||||
$item += item.name
|
||||
$item += '</span>';
|
||||
|
||||
Reference in New Issue
Block a user