mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[improvement] Use scoped-slots in Vue 2.6+ (#2688)
This commit is contained in:
@@ -148,13 +148,13 @@ export default sfc({
|
||||
>
|
||||
{this.leftWidth && (
|
||||
<div class={bem('left')} onClick={onClick('left', true)}>
|
||||
{this.$slots.left}
|
||||
{this.slots('left')}
|
||||
</div>
|
||||
)}
|
||||
{this.$slots.default}
|
||||
{this.slots()}
|
||||
{this.rightWidth && (
|
||||
<div class={bem('right')} onClick={onClick('right', true)}>
|
||||
{this.$slots.right}
|
||||
{this.slots('right')}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user