Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 div
<div dragula='"bag-one"'>Div1 </div>
在控制器中,事件被触发但元素没有被拖动。
$scope .$on('bag-one.drag', function (e, el) { console.log("called"); })
我该如何解决?
如果您没有看到任何错误,请尝试在 Dragula 的容器中添加几行。
<div dragula='"bag-one"'> <span>Row one</span> <span>Row two</span> </div>