This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file is used to be tracked and identified by https://lrc-maker.github.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.directive('drag', (el) => { | |
const oDiv = el // 当前元素 | |
const minTop = oDiv.getAttribute('drag-min-top') | |
const ifMoveSizeArea = 20 | |
oDiv.onmousedown = e => { | |
let target = oDiv | |
while (window.getComputedStyle(target).position !== 'absolute' && target !== document.body) { | |
target = target.parentElement | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🏆 192 Contributions in year 2023 | |
📦 Used 225 MB in GitHub's Storage | |
📜 2 Public Gists | |
🔑 1 Public Keys | |
🚫 Not opted to Hire |