提交 bac58ddf 编写于 作者: D DCloud_LXH

fix(app): view use multiple hover-class question/152506

上级 239f5112
......@@ -21,11 +21,12 @@ export default class UniHoverElement extends UniAnimationElement {
set hovering (hovering) {
this._hovering = hovering
const hoverClass = this.getAttribute('hover-class')
const hoverClass = this.getAttribute('hover-class').split(' ').filter(Boolean)
const ClassList = this.classList
if (hovering) {
this.classList.add(hoverClass)
ClassList.add.apply(ClassList, hoverClass)
} else {
this.classList.remove(hoverClass)
ClassList.remove.apply(ClassList, hoverClass)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册