<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI 拖动(Draggable) - 默认功能</title>
<link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
<script src="//apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
<link rel="stylesheet" href="jqueryui/style.css">
<script>
function onTree1Load(e) {var data = e.data;var tree = e.sender;var node = data[0];// 加载第二级if (node && (node.id === "<ROOT>" || node.id === "0")) {tree.loadNode(node);}// 增加拖动功能$(".mini-tree-nodeshow:not(.ui-draggable)").draggable();}
</script>
</head>
<body>
<div id="tree1Content" class="mini-fit"><!-- tree1 动态加载 --><ul id="tree1" class="mini-tree" url="service/lazyTreeNodes" style="width:100%; height:100%; display:block;"showTreeIcon="true" textField="name" idField="id" parentField="pid"showCheckBox="true" showFolderCheckBox="false"virtualScroll="true" defaultRowHeight="26"onload="onTree1Load"></ul></div>
</body>
</html>
felt 发表于 2018-10-9 18:25
我们树节点本身有拖拽功能,不需要用jqueryui的拖拽
http://www.miniui.com/demo/index.html#src=tree/dr ...
felt 发表于 2018-10-9 18:25
我们树节点本身有拖拽功能,不需要用jqueryui的拖拽
http://www.miniui.com/demo/index.html#src=tree/dr ...
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) | Powered by Discuz! X2 |