<div class="eletree9"></div>
<script>
var el = eleTree({
el: '.eletree9',
url: '/eleTree/json/1.json?v=2.0.12',
highlightCurrent: true,
showCheckbox: true,
imgUrl: "/eleTree/images/",
icon: {
fold: "fold.png",
leaf: "leaf.png",
checkFull: ".eletree_icon-check_full",
checkHalf: ".eletree_icon-check_half",
checkNone: ".eletree_icon-check_none",
dropdownOff: ".eletree_icon-dropdown_right",
dropdownOn: ".eletree_icon-dropdown_bottom",
loading: ".eleTree-animate-rotate.eletree_icon-loading1",
radioCheck: "radioCheck.png",
radioCheckNone: "radioCheckNone.png",
},
draggable: true,
rightMenuList: ["copy", "paste", "paste_before", "paste_after", "cut_paste"],
})
el.on('drag', function(data) {
console.log(data)
setTimeout(() => {
data.load()
}, 100);
})
</script>
<style>
.eletree9 {
padding: 15px 0;
}
</style>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37