sonar medium

This commit is contained in:
Cindy Chang
2024-07-29 11:11:00 +08:00
parent 2150a4ac79
commit 09e38dc3c4

View File

@@ -148,7 +148,9 @@ export default {
// 拖曳結束要顯示箭頭,但最後一個不用
const lastChild = evt.item.lastChild;
const listIndex = this.listSequence.length - 1
evt.oldIndex !== listIndex ? lastChild.style.display = '' : null;
if (evt.oldIndex !== listIndex) {
lastChild.style.display = '';
}
// reset: 拖曳最後一個元素時,倒數第二的元素的箭頭要隱藏
this.lastItemIndex = null;
},