sonar medium

This commit is contained in:
Cindy Chang
2024-07-26 11:39:02 +08:00
parent 83c87746e9
commit c85ee86f08
2 changed files with 28 additions and 13 deletions

View File

@@ -113,7 +113,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;
},