[bugfix] SwipeCell: incorrect render when left-width equals zero (#2737)

This commit is contained in:
neverland
2019-02-14 18:53:51 +08:00
committed by GitHub
parent a152309cfc
commit 7e774bcff2
3 changed files with 20 additions and 4 deletions

View File

@@ -146,17 +146,17 @@ export default sfc({
this.swipe = false;
}}
>
{this.leftWidth && (
{this.leftWidth ? (
<div class={bem('left')} onClick={onClick('left', true)}>
{this.slots('left')}
</div>
)}
) : null}
{this.slots()}
{this.rightWidth && (
{this.rightWidth ? (
<div class={bem('right')} onClick={onClick('right', true)}>
{this.slots('right')}
</div>
)}
) : null}
</div>
</div>
);