提交 a588c8cf 编写于 作者: D dolymood

feat(sticky): add sticky-on active class on sticky ele

上级 a85467e7
......@@ -15,7 +15,9 @@
<script type="text/ecmascript-6">
import {
getRect,
prefixStyle
prefixStyle,
addClass,
removeClass
} from '../../common/helpers/dom'
const COMPONENT_NAME = 'cube-sticky'
......@@ -102,6 +104,13 @@
this.fixedEleHeight = 0
}
}
const onClass = 'cube-sticky-ele-on'
if (oldEle) {
removeClass(oldEle.$el, onClass)
}
if (newEle) {
addClass(newEle.$el, onClass)
}
})
this.currentKey = currentKey
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册