如何自动化角度拖放列表

时间:2017-03-30 06:17:48

标签: angularjs html5 drag-and-drop jquery-ui-draggable

问题:尝试模拟使用角度拖放列表(go to detailed description)的前端中的拖放

尝试:

1.jquery-simulate:给出以下错误

  

未捕获的TypeError:无法执行'dispatchEvent'   'EventTarget':参数1不是'Event'类型。

2.drag-drop-helper.js:点击要拖动的项目

3.drag_to:没有任何反应

需要更多建议。

谢谢

jquery-simulate:https://github.com/jquery/jquery-simulate

抱歉无法发布drag_to和drag-drop-helper.js的链接

1 个答案:

答案 0 :(得分:0)

自定义事件需要像这样调整:

+--- com.android.support:appcompat-v7:23.4.0 -> 24.0.0
|    +--- com.android.support:support-v4:24.0.0
|    |    \--- com.android.support:support-annotations:24.0.0
|    +--- com.android.support:support-vector-drawable:24.0.0
|    |    \--- com.android.support:support-v4:24.0.0 (*)
|    \--- com.android.support:animated-vector-drawable:24.0.0
|         \--- com.android.support:support-vector-drawable:24.0.0 (*)
+--- com.android.support:design:23.4.0
|    +--- com.android.support:recyclerview-v7:23.4.0
|    |    +--- com.android.support:support-annotations:23.4.0 -> 24.0.0
|    |    \--- com.android.support:support-v4:23.4.0 -> 24.0.0 (*)
|    +--- com.android.support:appcompat-v7:23.4.0 -> 24.0.0 (*)
|    \--- com.android.support:support-v4:23.4.0 -> 24.0.0 (*)
+--- com.android.support:support-v4:23.4.0 -> 24.0.0 (*)
+--- com.google.android.gms:play-services:9.6.1
|    +--- com.google.android.gms:play-services-ads:9.6.1
|    |    +--- com.google.android.gms:play-services-ads-lite:9.6.1
|    |    |    \--- com.google.android.gms:play-services-basement:9.6.1
|    |    |         \--- com.android.support:support-v4:24.0.0 (*)
|    |    +--- com.google.android.gms:play-services-base:9.6.1
|    |    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    |    \--- com.google.android.gms:play-services-tasks:9.6.1
|    |    |         \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-clearcut:9.6.1
|    |    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-gass:9.6.1
|    |         \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-ads-lite:9.6.1 (*)
|    +--- com.google.android.gms:play-services-analytics:9.6.1
|    |    +--- com.google.android.gms:play-services-analytics-impl:9.6.1
|    |    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-analytics-impl:9.6.1 (*)
|    +--- com.google.android.gms:play-services-appinvite:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-tasks:9.6.1 (*)
|    +--- com.google.android.gms:play-services-auth:9.6.1
|    |    +--- com.google.android.gms:play-services-auth-base:9.6.1
|    |    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-auth-base:9.6.1 (*)
|    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    +--- com.google.android.gms:play-services-cast-framework:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-cast:9.6.1
|    |    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    |    \--- com.android.support:mediarouter-v7:24.0.0
|    |    |         +--- com.android.support:palette-v7:24.0.0
|    |    |         |    \--- com.android.support:support-v4:24.0.0 (*)
|    |    |         \--- com.android.support:appcompat-v7:24.0.0 (*)
|    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-cast:9.6.1 (*)
|    +--- com.google.android.gms:play-services-clearcut:9.6.1 (*)
|    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.firebase:firebase-config:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-iid:9.6.1
|    |    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    |    \--- com.google.firebase:firebase-common:9.6.1
|    |    |         +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    |         \--- com.google.android.gms:play-services-tasks:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-common:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-tasks:9.6.1 (*)
|    +--- com.google.android.gms:play-services-awareness:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-location:9.6.1
|    |    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-places:9.6.1
|    |         +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |         +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |         \--- com.google.android.gms:play-services-maps:9.6.1
|    |              +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |              \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.firebase:firebase-crash:9.6.1
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-iid:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-common:9.6.1 (*)
|    |    \--- com.google.firebase:firebase-analytics:9.6.1
|    |         +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |         +--- com.google.firebase:firebase-common:9.6.1 (*)
|    |         \--- com.google.firebase:firebase-analytics-impl:9.6.1
|    |              +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |              +--- com.google.firebase:firebase-iid:9.6.1 (*)
|    |              \--- com.google.firebase:firebase-common:9.6.1 (*)
|    +--- com.google.android.gms:play-services-drive:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.firebase:firebase-auth:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-auth-common:9.6.1
|    |    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    |    +--- com.google.firebase:firebase-auth-module:9.6.1
|    |    |    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    |    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    |    \--- com.google.firebase:firebase-common:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-auth-module:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-common:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-tasks:9.6.1 (*)
|    +--- com.google.firebase:firebase-auth-common:9.6.1 (*)
|    +--- com.google.firebase:firebase-auth-module:9.6.1 (*)
|    +--- com.google.firebase:firebase-database-connection:9.6.1
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    \--- com.google.firebase:firebase-common:9.6.1 (*)
|    +--- com.google.firebase:firebase-database:9.6.1
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-database-connection:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-common:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-tasks:9.6.1 (*)
|    +--- com.google.firebase:firebase-iid:9.6.1 (*)
|    +--- com.google.firebase:firebase-messaging:9.6.1
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-iid:9.6.1 (*)
|    |    \--- com.google.firebase:firebase-common:9.6.1 (*)
|    +--- com.google.firebase:firebase-storage:9.6.1
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-storage-common:9.6.1
|    |    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-common:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-tasks:9.6.1 (*)
|    +--- com.google.firebase:firebase-storage-common:9.6.1 (*)
|    +--- com.google.firebase:firebase-common:9.6.1 (*)
|    +--- com.google.android.gms:play-services-fitness:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-location:9.6.1 (*)
|    +--- com.google.android.gms:play-services-games:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-drive:9.6.1 (*)
|    +--- com.google.android.gms:play-services-gass:9.6.1 (*)
|    +--- com.google.android.gms:play-services-gcm:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-iid:9.6.1
|    |         +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |         \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-appindexing:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.firebase:firebase-common:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-tasks:9.6.1 (*)
|    +--- com.google.android.gms:play-services-identity:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-iid:9.6.1 (*)
|    +--- com.google.android.gms:play-services-instantapps:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-location:9.6.1 (*)
|    +--- com.google.android.gms:play-services-maps:9.6.1 (*)
|    +--- com.google.firebase:firebase-analytics:9.6.1 (*)
|    +--- com.google.firebase:firebase-analytics-impl:9.6.1 (*)
|    +--- com.google.android.gms:play-services-nearby:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-panorama:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-places:9.6.1 (*)
|    +--- com.google.android.gms:play-services-plus:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-safetynet:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-tagmanager-api:9.6.1
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    \--- com.google.firebase:firebase-analytics:9.6.1 (*)
|    +--- com.google.android.gms:play-services-tagmanager:9.6.1
|    |    +--- com.google.android.gms:play-services-analytics-impl:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-tagmanager-api:9.6.1 (*)
|    +--- com.google.android.gms:play-services-tasks:9.6.1 (*)
|    +--- com.google.android.gms:play-services-vision:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    +--- com.google.android.gms:play-services-wallet:9.6.1
|    |    +--- com.google.android.gms:play-services-base:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:9.6.1 (*)
|    |    +--- com.google.android.gms:play-services-identity:9.6.1 (*)
|    |    \--- com.google.android.gms:play-services-maps:9.6.1 (*)
|    \--- com.google.android.gms:play-services-wearable:9.6.1
|         +--- com.google.android.gms:play-services-base:9.6.1 (*)
|         \--- com.google.android.gms:play-services-basement:9.6.1 (*)
+--- com.github.lzyzsd:circleprogress:1.1.0
+--- com.android.support:multidex:1.0.0
\--- testfairy:testfairy-android-sdk:1.+ -> 1.4.14
native js drag drop script

,然后就可以了。