mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
feat: migrate DropdownMenu
This commit is contained in:
@@ -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>
|
||||
);
|
||||
},
|
||||
|
Reference in New Issue
Block a user