Skip to content
Snippets Groups Projects
Unverified Commit eb1d3381 authored by 花裤衩's avatar 花裤衩 Committed by GitHub
Browse files

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

parent 8cf279fb
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment