未验证 提交 eb1d3381 编写于 作者: 花裤衩 提交者: GitHub

perf[Sticky]: export reset method (#1550)

上级 8cf279fb
......@@ -56,10 +56,13 @@ export default {
this.width = this.width + 'px'
this.isSticky = true
},
reset() {
handleReset() {
if (!this.active) {
return
}
this.reset()
},
reset() {
this.position = ''
this.width = 'auto'
this.active = false
......@@ -72,7 +75,7 @@ export default {
this.sticky()
return
}
this.reset()
this.handleReset()
},
handleReize() {
if (this.isSticky) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册