This commit is contained in:
朱子楚\zhuzi 2023-06-15 00:42:07 +08:00
parent 91f4f508cc
commit 441c1ab03c
2 changed files with 8 additions and 1 deletions

View File

@ -87,7 +87,7 @@ FluScrollablePage{
text:"删除"
horizontalPadding: 6
onClicked:{
showError(JSON.stringify(dataObject))
table_view.remove(dataModel.index)
}
}
}

View File

@ -138,6 +138,9 @@ Item {
width: Math.max(layout_flickable.width,d.columnsWidth)
clip:true
interactive: false
removeDisplaced: Transition {
NumberAnimation { properties: "x,y"; duration: 167 }
}
header: header_columns
footer: Item{
height: pageVisible ? 54 : 0
@ -287,4 +290,8 @@ Item {
}
return data;
}
function remove(index){
model_data_source.remove(index)
console.debug(index)
}
}