fix(extension):修复收藏应用组不能拖拽换位功能
This commit is contained in:
parent
f7b4b23a1f
commit
af6886e6ff
|
@ -29,8 +29,8 @@ UkuiItems.StyleBackground {
|
|||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
paletteRole: Platform.Theme.Text
|
||||
useStyleTransparency: false
|
||||
alpha: (delegateDropArea.enterSourceId !== model.id)
|
||||
&& delegateDropArea.containsDrag && favoriteView.dragTypeIsMerge ? 0.15 : 0
|
||||
alpha: ((delegateDropArea.enterSourceId !== model.id)
|
||||
&& delegateDropArea.containsDrag && favoriteView.dragTypeIsMerge) ? 0.15 : 0
|
||||
z: -1
|
||||
}
|
||||
|
||||
|
@ -43,13 +43,14 @@ UkuiItems.StyleBackground {
|
|||
// drag.source [itemLoader]
|
||||
onEntered: {
|
||||
// 拖拽对象为folder 或 左侧列表应用时
|
||||
if (drag.source.isFolder || !drag.source.sourceId) {
|
||||
if (!drag.source.sourceId) {
|
||||
drag.accepted = false;
|
||||
return;
|
||||
}
|
||||
|
||||
enterSourceId = drag.source.sourceId;
|
||||
delegateDropTimer.running = true;
|
||||
if (!drag.source.isFolder) {
|
||||
enterSourceId = drag.source.sourceId;
|
||||
delegateDropTimer.running = true;
|
||||
}
|
||||
}
|
||||
onExited: {
|
||||
if (!drag.source.sourceId) {
|
||||
|
|
Loading…
Reference in New Issue