diff --git a/module-config-table/src/main/resources/templates/configtable/list-field.html b/module-config-table/src/main/resources/templates/configtable/list-field.html index 5ea7677..212e172 100644 --- a/module-config-table/src/main/resources/templates/configtable/list-field.html +++ b/module-config-table/src/main/resources/templates/configtable/list-field.html @@ -74,6 +74,7 @@
+
@@ -502,15 +503,21 @@ // 排序 var container = document.getElementById("container"); var sort = Sortable.create(container, { - animation: 30, // ms, animation speed moving items when sorting, `0` — without animation + animation: 150, // ms, animation speed moving items when sorting, `0` — without animation handle: ".module1", // Restricts sort start click/touch to the specified element draggable: ".module1", // Specifies which items inside the element should be sortable onUpdate: function (evt){ console.log(evt); console.log(evt.item); console.log(evt.nextSibling); + }, + onChoose: function (evt) { + console.log("点击") + console.log(evt.item.id) + evt.oldIndex; // element index within parent + }, + - } }); form.render(null, 'dataForm'); }, function(code, data) {