优化代码
parent
3dbffb5c41
commit
1e00c7df59
|
@ -298,8 +298,7 @@ class Swipe extends Component {
|
||||||
this.$on('mouseenter', () => this.showArrow())
|
this.$on('mouseenter', () => this.showArrow())
|
||||||
this.$on('mouseleave', () => this.hideArrow())
|
this.$on('mouseleave', () => this.hideArrow())
|
||||||
} else if (this.arrow === 'alway') {
|
} else if (this.arrow === 'alway') {
|
||||||
this.showArrowBtn = true
|
this.showArrow()
|
||||||
this.$requestUpdate()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unmounted() {
|
unmounted() {
|
||||||
|
|
Loading…
Reference in New Issue