mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[improvement] Use scoped-slots in Vue 2.6+ (#2688)
This commit is contained in:
@@ -265,7 +265,7 @@ export default sfc({
|
||||
const { count, activeIndicator } = this;
|
||||
|
||||
const Indicator =
|
||||
this.$slots.indicator ||
|
||||
this.slots('indicator') ||
|
||||
(this.showIndicators && count > 1 && (
|
||||
<div class={bem('indicators', { vertical: this.vertical })} onTransitionend={stop}>
|
||||
{Array(...Array(count)).map((empty, index) => (
|
||||
@@ -288,7 +288,7 @@ export default sfc({
|
||||
onTouchcancel={this.onTouchEnd}
|
||||
onTransitionend={this.onTransitionend}
|
||||
>
|
||||
{this.$slots.default}
|
||||
{this.slots()}
|
||||
</div>
|
||||
{Indicator}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user