迁移提示文本字段

This commit is contained in:
lyswhut
2022-03-20 12:04:01 +08:00
parent 9bf33fdb25
commit b844a577c7
40 changed files with 126 additions and 120 deletions
+6 -2
View File
@@ -8,10 +8,14 @@ let prevX = 0
let prevY = 0
let isDraging = false
const getTipText = el => {
return el.getAttribute('aria-label') && el.getAttribute('ignore-tip') == null ? el.getAttribute('aria-label') : null
}
const getTips = el =>
el
? el.getAttribute('tips')
? el.getAttribute('tips')
? getTipText(el)
? getTipText(el)
: el.parentNode === document.documentElement
? null
: getTips(el.parentNode)