|
|
@ -95,8 +95,11 @@ class TreeView { |
|
|
|
li.appendChild(list) |
|
|
|
li.appendChild(list) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
caret.style.visibility = 'hidden' |
|
|
|
caret.style.visibility = 'hidden' |
|
|
|
label.onclick = function () { |
|
|
|
label.oncontextmenu = function (event) { |
|
|
|
self.event.trigger('leafClick', [key, data, label]) |
|
|
|
self.event.trigger('leafRightClick', [key, data, label, event]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
label.onclick = function (event) { |
|
|
|
|
|
|
|
self.event.trigger('leafClick', [key, data, label, event]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return li |
|
|
|
return li |
|
|
|