feat: migrate DropdownMenu

This commit is contained in:
chenjiahan
2020-08-16 15:50:46 +08:00
parent 0a570b2382
commit 998c7d8da6
5 changed files with 27 additions and 17 deletions

View File

@@ -117,7 +117,7 @@ export default createComponent({
style={{ color: item.showPopup ? this.activeColor : '' }}
>
<div class="van-ellipsis">
{item.slots('title') || item.displayTitle}
{item.$slots.title ? item.$slots.title() : item.displayTitle}
</div>
</span>
</div>
@@ -132,7 +132,7 @@ export default createComponent({
>
{Titles}
</div>
{this.slots('default')}
{this.$slots.default?.()}
</div>
);
},