答案 0 :(得分:4)
使用onOver
和onOut
Angular Droppable选项并切换类,例如。 hover
// HTML
<div class="thumbnail" data-drop="true" ng-model="list2"
jqyoui-droppable="{onOver: 'onOver', onOut: 'onOut', onDrop: 'onDrop'}" ng-bind="list2.title ? 'Dropped successfully..!' : 'Drop here...'"></div>
// JS
$scope.onOver = function(e) {
angular.element(e.target).addClass("hover");
};
$scope.onOut = function(e) {
angular.element(e.target).removeClass("hover");
};
$scope.onDrop = function(e) {
angular.element(e.target).removeClass("hover").addClass("done");
};