mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[bugfix] SwipeCell: incorrect render when left-width equals zero (#2737)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
Reference in New Issue
Block a user