[new feature] DropdownItem: add title-class prop

This commit is contained in:
陈嘉涵
2019-05-23 10:25:01 +08:00
parent 4c1075020f
commit 14ac581ac6
5 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ export default sfc({
}}
>
<span
class={bem('title', { active: item.show })}
class={[bem('title', { active: item.show }), item.titleClass]}
style={{ color: item.show ? this.activeColor : '' }}
>
{item.displayTitle}