perf[Sticky]: export reset method (#1550)
This commit is contained in:
parent
8cf279fbe1
commit
eb1d3381f4
1 changed files with 5 additions and 2 deletions
|
@ -56,10 +56,13 @@ export default {
|
||||||
this.width = this.width + 'px'
|
this.width = this.width + 'px'
|
||||||
this.isSticky = true
|
this.isSticky = true
|
||||||
},
|
},
|
||||||
reset() {
|
handleReset() {
|
||||||
if (!this.active) {
|
if (!this.active) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.reset()
|
||||||
|
},
|
||||||
|
reset() {
|
||||||
this.position = ''
|
this.position = ''
|
||||||
this.width = 'auto'
|
this.width = 'auto'
|
||||||
this.active = false
|
this.active = false
|
||||||
|
@ -72,7 +75,7 @@ export default {
|
||||||
this.sticky()
|
this.sticky()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.reset()
|
this.handleReset()
|
||||||
},
|
},
|
||||||
handleReize() {
|
handleReize() {
|
||||||
if (this.isSticky) {
|
if (this.isSticky) {
|
||||||
|
|
Loading…
Reference in a new issue