优化样式

master
chenjiajian 2023-04-12 18:27:32 +08:00
parent 9109ca7680
commit 128df30a62
1 changed files with 3 additions and 4 deletions

View File

@ -125,10 +125,9 @@ class Swipe extends Component {
border-color: #fff;
border-radius: 50%;
--size: 12px;
transition: opacity linear 0.2s;
transition: opacity ease-in-out 0.2s;
&:hover {
opacity: 0.8 !important;
opacity: 1 !important;
}
}
.left,
@ -308,7 +307,7 @@ class Swipe extends Component {
}
render() {
let styles = styleMap({
opacity: this.showArrowBtn ? 0.5 : 0
opacity: this.showArrowBtn ? 0.6 : 0
})
let toggleBtns =
this.direction === 'horizontal'