正如您所看到的拖动不再有效,但它已经存在了! 它可以正常拖动图像,但其他人不会移动以腾出空间。
起初我认为这是新的Chrome 43,但它正在Safari和Firefox中发生。 我在ng-sortable的1.1.7中,所以我尝试更新到2.2.1,但没有解决它。我去了1.1.9但没有。
这是我的凉亭代表,以防您知道我不会有任何兼容性。
"dependencies": {
"angular": "~1.3.5",
"angular-animate": "~1.3.5",
"angular-sanitize": "~1.3.5",
"angular-ui-router": "0.2.13",
"angular-bootstrap": "~0.12.0",
"angular-google-maps": "~2.1.0",
"ngstorage": "~0.3.0",
"ngtoast": "~1.4.0",
"ng-file-upload": "~1.6.5",
"angular-ui-select": "~0.11.2",
"highcharts-ng": "~0.0.7",
"angular-bootstrap-colorpicker": "~3.0.8",
"moment": "~2.8.4",
"lodash": "~2.4.1",
"angulartics": "~0.17.1",
"angular-smart-table": "~1.4.11",
"card": "~0.1.4",
"angular-input-masks": "~1.3.1",
"angular-seo": "*",
"ng-sortable": "1.1.9",
"dw-bxslider-4": "~4.2.3"
}
这是我的玉模板
ul.uploaded-file.uploaded-file-grid.feature-first(as-sortable="config.sortable", ng-model='property.photos')
li.draggable.align-center(as-sortable-item, ng-repeat='image in property.photos')
img.full-width(ng-src="{{image.small}}", as-sortable-item-handle)
a.btn.btn-sm.btn-danger.icon-bin-2(ng-click="removeImage($index)", href="javascript:;", tooltip="Borrar")
我的配置对象,我传递给as-sortable
{
orderChanged: function (event) {
$scope.update();
}
}