refactor: 删除无用代码

This commit is contained in:
pipipi-pikachu 2022-09-11 13:14:35 +08:00
parent 6739767f58
commit 9135d0a77b

View File

@ -203,27 +203,6 @@ const activedCell = computed(() => {
return selectedCells.value[0]
})
//
const selectedRange = computed(() => {
if (!startCell.value.length) return null
const [startX, startY] = startCell.value
if (!endCell.value.length) return { row: [startX, startX], col: [startY, startY] }
const [endX, endY] = endCell.value
if (startX === endX && startY === endY) return { row: [startX, startX], col: [startY, startY] }
const minX = Math.min(startX, endX)
const minY = Math.min(startY, endY)
const maxX = Math.max(startX, endX)
const maxY = Math.max(startY, endY)
return {
row: [minX, maxX],
col: [minY, maxY],
}
})
//
const handleMouseup = () => isStartSelect.value = false