mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
feat(DropdownItem): add title slot (#4975)
This commit is contained in:
@@ -95,7 +95,7 @@ export default createComponent({
|
||||
]}
|
||||
style={{ color: item.showPopup ? this.activeColor : '' }}
|
||||
>
|
||||
<div class="van-ellipsis">{item.displayTitle}</div>
|
||||
<div class="van-ellipsis">{item.slots('title') || item.displayTitle}</div>
|
||||
</span>
|
||||
</div>
|
||||
));
|
||||
|
Reference in New Issue
Block a user