mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-07 20:17:42 +08:00
update
This commit is contained in:
@ -873,6 +873,25 @@ Rectangle {
|
||||
table_view.model.removeRow(rowIndex,rows)
|
||||
}
|
||||
}
|
||||
function insertRow(rowIndex,obj){
|
||||
if(rowIndex>=0 && rowIndex<table_view.rows){
|
||||
table_view.model.insertRow(rowIndex,obj)
|
||||
}
|
||||
}
|
||||
function currentIndex(){
|
||||
var index = -1
|
||||
if(!d.current){
|
||||
return index
|
||||
}
|
||||
for (var i = 0; i <= table_model.rowCount-1; i++) {
|
||||
var sourceItem = table_model.getRow(i);
|
||||
if(sourceItem._key === d.current._key){
|
||||
index = i
|
||||
break
|
||||
}
|
||||
}
|
||||
return index
|
||||
}
|
||||
function appendRow(obj){
|
||||
table_model.appendRow(obj)
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ Window {
|
||||
}
|
||||
Timer{
|
||||
id:timer_update_image
|
||||
interval: 500
|
||||
interval: 150
|
||||
onTriggered: {
|
||||
img_back.source = ""
|
||||
img_back.source = FluTools.getUrlByFilePath(FluTheme.desktopImagePath)
|
||||
|
Reference in New Issue
Block a user