refactor(Swipe): use flex layout

This commit is contained in:
chenjiahan
2020-03-22 07:48:16 +08:00
parent 3bd9ef1d4c
commit f701de9e58
6 changed files with 66 additions and 45 deletions
+5 -1
View File
@@ -382,7 +382,11 @@ export default createComponent({
render() {
return (
<div class={bem()}>
<div ref="track" style={this.trackStyle} class={bem('track')}>
<div
ref="track"
style={this.trackStyle}
class={bem('track', { vertical: this.vertical })}
>
{this.slots()}
</div>
{this.genIndicator()}