feat(DropdownItem): add title slot (#4975)

This commit is contained in:
neverland
2019-11-10 11:47:11 +08:00
committed by GitHub
parent 76cdb03962
commit 9d12e895fe
6 changed files with 45 additions and 2 deletions

View File

@@ -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>
));