提交 8ea0b4a9 编写于 作者: D DCloud_LXH

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

上级 75344f3c
......@@ -75,11 +75,12 @@ class Hover {
set hovering(hovering: boolean) {
this._hovering = hovering
const hoverClass = this.props['hover-class']
const hoverClass = this.props['hover-class'].split(' ').filter(Boolean)
const ClassList = this.$.classList
if (hovering) {
this.$.classList.add(hoverClass)
this.$.classList.add.apply(ClassList, hoverClass)
} else {
this.$.classList.remove(hoverClass)
this.$.classList.remove.apply(ClassList, hoverClass)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册