修复getAttribute的报错
parent
684d90d0e7
commit
0a919d7076
|
@ -4,11 +4,14 @@ import { debounce } from '../../utils'
|
||||||
let instance
|
let instance
|
||||||
let prevTips
|
let prevTips
|
||||||
|
|
||||||
const getTips = el => el.getAttribute('tips')
|
const getTips = el =>
|
||||||
? el.getAttribute('tips')
|
el
|
||||||
: el.parentNode === document.documentElement
|
? el.getAttribute('tips')
|
||||||
? null
|
? el.getAttribute('tips')
|
||||||
: getTips(el.parentNode)
|
: el.parentNode === document.documentElement
|
||||||
|
? null
|
||||||
|
: getTips(el.parentNode)
|
||||||
|
: null
|
||||||
|
|
||||||
const showTips = debounce(event => {
|
const showTips = debounce(event => {
|
||||||
let msg = getTips(event.target)
|
let msg = getTips(event.target)
|
||||||
|
|
Loading…
Reference in New Issue