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