Update bar.vue

This commit is contained in:
波比小金刚 2021-07-02 16:56:48 +08:00 committed by Herrington Darkholme
parent 4202e176c6
commit 4a8ead95dd

View File

@ -48,7 +48,7 @@ export default defineComponent({
}
window.getSelection().removeAllRanges()
startDrag(e)
barStore.value[bar.value.axis] = (e.currentTarget[bar.value.offset] - (e[bar.value.client] - e.currentTarget.getBoundingClientRect()[bar.value.direction]))
barStore.value[bar.value.axis] = (e.currentTarget[bar.value.offset] - (e[bar.value.client] - (e.currentTarget as HTMLElement).getBoundingClientRect()[bar.value.direction]))
}
const clickTrackHandler = (e: MouseEvent) => {